@import url("fonts.css");

/* ==========================================================================
   Stowford Mill Residents' Association
   Design: "Watermark". Paper, ink, and the mill's own marks.
   ========================================================================== */

:root{
  --paper:#f2eee4;
  --paper-deep:#e9e3d5;
  --ink:#17181b;
  --ink-soft:#4a4a48;
  --azure:#23456b;          /* after Azure Laid, the paper the mill made from 1843 */
  --azure-dark:#1a3450;
  --deckle:#cfc6b4;
  --brick:#8c4a38;
  --display:"Bodoni Moda",Georgia,"Times New Roman",serif;
  --body:"Source Serif 4",Georgia,"Times New Roman",serif;
  --measure:34em;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
body{
  margin:0;overflow-x:clip;color:var(--ink);background:var(--paper);
  font-family:var(--body);font-size:18px;line-height:1.62;font-weight:400;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto}
a{color:var(--azure)}
a:hover{color:var(--azure-dark)}
:focus-visible{outline:2px solid var(--brick);outline-offset:3px}
.skip{position:absolute;left:-9999px}
.skip:focus{position:fixed;left:16px;top:16px;z-index:99;background:var(--brick);color:#fff;
  padding:12px 18px;text-decoration:none;font-weight:600}

.wrap{max-width:1080px;margin:0 auto;padding-left:28px;padding-right:28px}
.narrow{max-width:44em}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* --- laid paper: fine laid lines every 3px, chain lines every 34px -------- */
.laid{
  background-color:var(--paper);
  background-image:
    repeating-linear-gradient(90deg,rgba(23,24,27,.030) 0 1px,transparent 1px 3px),
    repeating-linear-gradient(90deg,rgba(23,24,27,.045) 0 1px,transparent 1px 34px);
}
.on-deep{background-color:var(--paper-deep)}

.eyebrow{font-family:var(--body);font-size:12px;font-weight:600;letter-spacing:.28em;
  text-transform:uppercase;color:var(--azure);margin:0}

/* ==========================================================================
   Header
   ========================================================================== */
.site-head{background:#0d1116;color:var(--paper)}
.site-head--plain{border-bottom:1px solid rgba(242,238,228,.16)}
.topbar{padding:22px 0}
.topbar .wrap{display:flex;align-items:center;justify-content:space-between;gap:22px;flex-wrap:wrap}
.topbar .wrap > *{min-width:0}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:inherit}
/* logo-mono.png is black line art on transparency (generated from the association's
   roundel), so it can simply be tinted rather than blended. */
.brand img{width:44px;height:44px;flex:0 0 44px;filter:brightness(0) invert(1);opacity:.88}
.brand .wordmark{font-family:var(--display);font-size:22px;font-weight:500;letter-spacing:.03em;line-height:1.1}
.brand .wordmark span{display:block;font-family:var(--body);font-size:10px;letter-spacing:.3em;
  text-transform:uppercase;color:rgba(242,238,228,.62);margin-top:6px;font-weight:600}
.site-nav ul{display:flex;gap:28px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.site-nav a{color:rgba(242,238,228,.8);text-decoration:none;font-size:12.5px;letter-spacing:.14em;
  text-transform:uppercase;font-weight:600;padding-bottom:5px;border-bottom:1px solid transparent;
  transition:color .18s,border-color .18s}
.site-nav a:hover,.site-nav a:focus-visible{color:var(--paper);border-bottom-color:rgba(242,238,228,.6)}
.site-nav a[aria-current="page"]{color:var(--paper);border-bottom-color:var(--brick)}
@media(max-width:760px){
  .topbar .wrap{justify-content:center;text-align:center;gap:16px}
  .site-nav{width:100%}                     /* let the list wrap instead of widening the page */
  .site-nav ul{justify-content:center;gap:12px 18px}
  .brand{flex-direction:column;gap:10px}
}

/* --- hero (home) --------------------------------------------------------- */
.hero{position:relative;min-height:clamp(540px,84vh,840px);display:flex;flex-direction:column;
  background:#0d1116;color:var(--paper);overflow:hidden}
.hero > .topbar,.hero > .hero-body,.hero > .strip{position:relative;z-index:2}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  filter:grayscale(.42) contrast(1.02);opacity:.5;z-index:0}
.hero::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    linear-gradient(180deg,rgba(10,14,18,.70) 0%,rgba(10,14,18,.34) 22%,rgba(10,14,18,.62) 52%,rgba(10,14,18,.88) 100%),
    linear-gradient(100deg,rgba(10,14,18,.70) 0%,rgba(10,14,18,.22) 62%,rgba(10,14,18,0) 100%)}
.hero > .topbar{border-bottom:1px solid rgba(242,238,228,.18)}
.hero-body{flex:1;display:flex;align-items:center;padding:72px 0 30px}
.hero h1{font-family:var(--display);color:var(--paper);font-weight:400;
  font-size:clamp(2.05rem,7.6vw,6.2rem);line-height:.98;margin:18px 0 0;letter-spacing:-.015em}
.hero h1 em{font-style:italic}
.hero .eyebrow{color:rgba(242,238,228,.72)}
.hero-body p{color:rgba(242,238,228,.88);font-size:20px;max-width:32em;margin:26px 0 0;font-weight:300}
.strip{border-top:1px solid rgba(242,238,228,.18);padding:20px 0 26px}
.strip .wrap{display:flex;gap:44px;flex-wrap:wrap;align-items:baseline}
.strip dl{margin:0}
.strip dt{font-size:10px;letter-spacing:.26em;text-transform:uppercase;color:rgba(242,238,228,.55);font-weight:600}
.strip dd{margin:6px 0 0;font-family:var(--display);font-size:23px;color:var(--paper);font-weight:400}

/* --- page banner (inner pages) ------------------------------------------- */
.page-banner{background:#0d1116;color:var(--paper);padding:58px 0 62px;position:relative;overflow:hidden}
.page-banner img.bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:.26;filter:grayscale(.6);z-index:0}
.page-banner .wrap{position:relative;z-index:1}
.page-banner .eyebrow{color:rgba(242,238,228,.68)}
.page-banner h1{font-family:var(--display);font-weight:400;font-size:clamp(2.2rem,5.4vw,4rem);
  line-height:1.02;margin:14px 0 0;letter-spacing:-.015em}
.page-banner p{color:rgba(242,238,228,.82);font-size:19px;max-width:38em;margin:20px 0 0;font-weight:300}

/* ==========================================================================
   Standing meeting notice
   ========================================================================== */
.meeting{background:var(--azure);color:#eef2f7;padding:26px 0}
.meeting .wrap{display:flex;gap:26px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.meeting .eyebrow{color:rgba(238,242,247,.7)}
.meeting .when{margin:7px 0 0;font-size:22px;font-family:var(--display);font-weight:400}
.meeting small{display:block;font-size:15px;opacity:.78;margin-top:6px;font-family:var(--body)}
.ghost-btn{display:inline-block;border:1px solid rgba(238,242,247,.5);color:#eef2f7;text-decoration:none;
  padding:12px 24px;font-size:11.5px;letter-spacing:.2em;text-transform:uppercase;font-weight:600;
  transition:background .2s,border-color .2s}
.ghost-btn:hover,.ghost-btn:focus-visible{background:rgba(238,242,247,.12);border-color:#eef2f7;color:#fff}

.btn{display:inline-block;background:var(--azure);color:#eef2f7;text-decoration:none;
  padding:13px 26px;font-size:11.5px;letter-spacing:.2em;text-transform:uppercase;font-weight:600;
  border:1px solid var(--azure);transition:background .2s}
.btn:hover,.btn:focus-visible{background:var(--azure-dark);border-color:var(--azure-dark);color:#fff}
.btn--quiet{background:transparent;color:var(--azure);border-color:var(--deckle)}
.btn--quiet:hover{background:var(--azure);color:#eef2f7;border-color:var(--azure)}

/* ==========================================================================
   Sections. Each carries a ghosted roman numeral, like a watermark.
   ========================================================================== */
section{padding:92px 0;position:relative;overflow:hidden}

/* The mill's mark, pressed into the paper. A watermark is the maker's device
   held up to the light, so the association's own roundel sits behind the page
   rather than a decorative numeral. Alternating sides keeps it from becoming
   wallpaper. */
.mark{position:relative}
.mark::before{
  content:"";position:absolute;top:-58px;right:-90px;
  width:clamp(230px,26vw,360px);aspect-ratio:1;
  background:url("img/logo-mono.png") center/contain no-repeat;
  opacity:.075;pointer-events:none;z-index:0}
section:nth-of-type(even) .mark::before{right:auto;left:-155px;top:20px}
@media(max-width:760px){.mark::before{opacity:.06;width:210px;right:-70px}}
.mark > *{position:relative;z-index:1}

h2{font-family:var(--display);font-weight:400;font-size:clamp(2rem,4.2vw,3.1rem);
  line-height:1.06;margin:12px 0 18px;letter-spacing:-.01em}
h3{font-family:var(--display);font-weight:400;font-size:26px;margin:0 0 10px;line-height:1.14}
.section-lede{font-size:20px;color:var(--ink-soft);max-width:var(--measure);margin:0 0 42px;font-weight:300}
.prose{max-width:var(--measure)}
.prose p{margin:0 0 20px}
.prose p:last-child{margin-bottom:0}
.prose h3{margin-top:36px}

/* --- committee name plates ----------------------------------------------- */
.plates{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:1px;
  background:var(--deckle);border:1px solid var(--deckle)}
.plate{background:var(--paper);padding:28px 24px 32px}
.plate .role{font-size:10.5px;letter-spacing:.24em;text-transform:uppercase;color:var(--azure);font-weight:600}
.plate .name{font-family:var(--display);font-size:clamp(24px,2.2vw,29px);margin:10px 0 0;
  font-weight:400;line-height:1.1;text-wrap:balance}
.plate--open .name{color:var(--brick)}
.plate--open a{color:inherit;text-decoration:none;border-bottom:1px solid rgba(140,74,56,.4)}
.plate--open a:hover{border-bottom-color:var(--brick)}

/* --- ruled lists (trades, papers) ---------------------------------------- */
.ruled{margin:0;padding:0;list-style:none;border-top:1px solid var(--deckle)}
.ruled > li{border-bottom:1px solid var(--deckle);padding:24px 0;display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);gap:30px;align-items:baseline}
.ruled .who{font-family:var(--display);font-size:23px;font-weight:400;line-height:1.16}
.ruled .who em{display:block;font-family:var(--body);font-style:normal;font-size:10.5px;
  letter-spacing:.22em;text-transform:uppercase;color:var(--azure);margin-top:8px;font-weight:600}
.ruled .word{color:var(--ink-soft);font-weight:300;font-size:17.5px}
.ruled .word a{word-break:break-word}
@media(max-width:660px){.ruled > li{grid-template-columns:1fr;gap:10px}}

/* --- document list ------------------------------------------------------- */
.docs{margin:0;padding:0;list-style:none;border-top:1px solid var(--deckle)}
.docs li{border-bottom:1px solid var(--deckle);padding:20px 0;display:flex;gap:22px;
  justify-content:space-between;align-items:baseline;flex-wrap:wrap}
.docs .doc-main{flex:1 1 22em;min-width:0}
.docs a.doc-title{font-family:var(--display);font-size:22px;text-decoration:none;
  border-bottom:1px solid rgba(35,69,107,.32);font-weight:400}
.docs a.doc-title:hover{border-bottom-color:var(--azure)}
.docs p{margin:7px 0 0;color:var(--ink-soft);font-size:16px;font-weight:300}
.meta{font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-soft);
  font-weight:600;white-space:nowrap}
.meta--locked{color:var(--brick)}

/* --- timeline ------------------------------------------------------------ */
.years{margin:0;padding:0;list-style:none;border-left:1px solid var(--deckle);max-width:46em}
.years li{position:relative;padding:0 0 26px 32px}
.years li::before{content:"";position:absolute;left:-4px;top:11px;width:7px;height:7px;
  background:var(--deckle);border-radius:50%}
.years li.key::before{background:var(--brick)}
.years .y{font-family:var(--display);font-size:15px;font-weight:700;letter-spacing:.06em;color:var(--azure)}
.years .e{margin:3px 0 0;font-size:17.5px;font-weight:300;color:var(--ink)}
.years li.now .y{color:var(--brick)}
.years li.now .e{font-weight:400}

/* --- figures and layout -------------------------------------------------- */
.two{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start}
.two--wide{grid-template-columns:1.3fr .7fr}
@media(max-width:840px){.two,.two--wide{grid-template-columns:1fr;gap:40px}}
.figure{margin:0}
.figure img{width:100%;height:auto;display:block;filter:grayscale(.2)}
.figure figcaption{font-size:13.5px;color:var(--ink-soft);margin-top:12px;font-style:italic;font-weight:300}
.figure--plate{border:1px solid var(--deckle);padding:10px;background:var(--paper)}

/* the association's own mark, treated as a blind stamp pressed into the paper */
.stamp{width:150px;height:auto;opacity:.34}

/* a partner's own logo, shown as supplied on its own white card */
.logo-card{background:#fff;border:1px solid var(--deckle);padding:26px 30px;display:block;
  max-width:340px}
.logo-card img{width:100%;display:block}

/* --- contact form -------------------------------------------------------- */
.form{max-width:34em}
.field{margin:0 0 20px}
.field label{display:block;font-size:11px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--azure);font-weight:600;margin-bottom:7px}
.field input,.field textarea{width:100%;font-family:var(--body);font-size:17px;color:var(--ink);
  background:var(--paper);border:1px solid var(--deckle);padding:12px 14px;border-radius:0;
  transition:border-color .18s}
.field input:focus,.field textarea:focus{border-color:var(--azure);outline:2px solid rgba(35,69,107,.18);outline-offset:0}
.field textarea{min-height:150px;resize:vertical}
.form-note{font-size:15px;color:var(--ink-soft);font-weight:300;margin:18px 0 0}
.hp{position:absolute;left:-9999px}
.form-status{margin:18px 0 0;font-size:16px;padding:12px 16px;border-left:3px solid var(--azure);
  background:rgba(35,69,107,.06);display:none}
.form-status.show{display:block}
.form-status.error{border-left-color:var(--brick);background:rgba(140,74,56,.07)}

/* --- residents' area gate ------------------------------------------------ */
.gate{border:1px solid var(--deckle);padding:30px 28px;max-width:34em;background:var(--paper)}
.gate h3{margin-top:0}
.gate p{font-size:16.5px;color:var(--ink-soft);font-weight:300}
.gate form{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.gate input{flex:1 1 12em;font-family:var(--body);font-size:17px;background:var(--paper);
  border:1px solid var(--deckle);padding:12px 14px;color:var(--ink)}
.gate .err{color:var(--brick);font-size:15px;margin:12px 0 0;display:none}
.gate .err.show{display:block}
[hidden]{display:none!important}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-foot{background:var(--ink);color:rgba(242,238,228,.74);padding:62px 0 40px;font-weight:300}
.site-foot .cols{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:44px}
@media(max-width:760px){.site-foot .cols{grid-template-columns:1fr;gap:30px}}
.site-foot a{color:var(--paper)}
.site-foot .brand img{filter:brightness(0) invert(1);opacity:.85}
.site-foot .wordmark{color:var(--paper)}
.site-foot h4{font-family:var(--body);font-size:11px;letter-spacing:.24em;text-transform:uppercase;
  color:rgba(242,238,228,.5);font-weight:600;margin:0 0 14px}
.site-foot ul{list-style:none;margin:0;padding:0}
.site-foot li{margin:0 0 9px;font-size:16px}
.site-foot p{margin:12px 0 0;font-size:16px}
.rule{height:1px;background:rgba(242,238,228,.16);margin:42px 0 20px}
.colophon{font-size:13.5px;opacity:.62;display:flex;gap:22px;justify-content:space-between;flex-wrap:wrap}

@media(max-width:640px){
  body{font-size:17px}
  section{padding:60px 0}
  .hero-body{padding:44px 0 24px}
  .wrap{padding-left:20px;padding-right:20px}
  .strip .wrap{gap:26px}
  .page-banner{padding:44px 0 48px}
}

@media print{
  .site-head,.site-nav,.meeting,.ghost-btn,.btn,.gate form{display:none}
  body{background:#fff;font-size:11pt}
  .laid{background-image:none}
  section{padding:18pt 0}
  .mark::before{display:none}
  a{color:#000;text-decoration:underline}
}
