/* mybesterbaycost.pro — Domestic Reset Ledger */

:root{
  --bg: #f7f5f1;
  --ink: #222;
  --muted: rgba(34,34,34,.72);
  --rule: rgba(34,34,34,.12);
  --rule-strong: rgba(34,34,34,.18);
  --paper: rgba(247,245,241,.84);
  --paper-strong: rgba(247,245,241,.92);
  --link: rgba(34,34,34,.86);
  --link-hover: rgba(34,34,34,1);
  --focus: rgba(34,34,34,.26);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.75;
  letter-spacing: .01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  background-image:
    linear-gradient(rgba(247,245,241,0.90), rgba(247,245,241,0.90)),
    url('background_reset_soft.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

a{
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}
a:hover{ color: var(--link-hover); }
a:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  padding: .65rem .85rem;
  background: var(--paper-strong);
  border: 1px solid var(--rule-strong);
  z-index: 999;
}
.skip-link:focus{ left: .75rem; top: .75rem; }

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,245,241,.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.site-header-inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.site-title{
  margin: 0;
  font-size: 1rem;
  letter-spacing: .02em;
}
nav a{
  margin-left: .9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(34,34,34,.25);
  padding-bottom: .1rem;
}
nav a:first-child{ margin-left: 0; }
nav a[aria-current="page"]{
  border-bottom-color: rgba(34,34,34,.55);
}

main{
  max-width: 980px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 3.25rem;
}

.entry--wide{
  padding: 2.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.entry--wide:first-child{ padding-top: .6rem; }

.entry--note{
  max-width: 66ch;
  margin: 0;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}

.entry--note .note-box{
  background: rgba(247,245,241,.68);
  border: 1px solid var(--rule);
  padding: 1.25rem 1.25rem 1.05rem;
}

h1{
  font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.35rem);
  line-height: 1.25;
  margin: 0 0 .85rem;
  letter-spacing: 0;
}
h2{
  font-size: 1.3rem;
  line-height: 1.35;
  margin: 0 0 .85rem;
}
h3{
  font-size: 1.05rem;
  margin: 0 0 .65rem;
}

p{ margin: 0 0 1rem; }
.lead{
  font-size: 1.08rem;
  color: rgba(34,34,34,.92);
}
.muted{ color: var(--muted); }

.separator{
  margin: 1.35rem 0 0;
  padding-top: 1.35rem;
  border-top: 1px dashed rgba(34,34,34,.18);
}

.fragments{
  list-style: none;
  padding: 0;
  margin: .95rem 0 0;
}
.fragments li{
  padding: .55rem 0;
  border-bottom: 1px dotted rgba(34,34,34,.16);
}
.fragments li:last-child{ border-bottom: 0; padding-bottom: .15rem; }

.line-list{
  list-style: none;
  padding: 0;
  margin: .95rem 0 0;
}
.line-list li{
  padding: .55rem 0;
  border-bottom: 1px solid rgba(34,34,34,.10);
}
.line-list li:last-child{ border-bottom: 0; padding-bottom: 0; }

.contact-block{
  margin-top: 2.25rem;
  padding: 1.15rem 1.25rem;
  background: rgba(247,245,241,.74);
  border: 1px solid var(--rule);
}
.contact-block p{ margin: .3rem 0; }

.article-meta{
  font-style: italic;
  color: rgba(34,34,34,.80);
  margin: 0 0 1.15rem;
}

.page-footer{
  border-top: 1px solid var(--rule);
  background: rgba(247,245,241,.76);
}
.page-footer-inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem 1.65rem;
}
.footer-nav{
  margin-bottom: .9rem;
}
.footer-nav a{
  margin-right: .9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(34,34,34,.25);
  padding-bottom: .1rem;
}
.footer-nav a:last-child{ margin-right: 0; }
.fineprint{
  font-size: .95rem;
  color: rgba(34,34,34,.72);
}

@media (max-width: 720px){
  .site-header-inner{
    flex-direction: column;
    align-items: flex-start;
  }
  nav a{ margin: 0 .75rem .25rem 0; display: inline-block; }
  main{ padding-top: 1.6rem; }
}

