/* Fernhouse Press. One paper, one ink, hairlines. No rounded corners, no gradients. */
@font-face { font-family: 'Cormorant'; src: url('fonts/web/cormorant-garamond-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('fonts/web/cormorant-garamond-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Schibsted'; src: url('fonts/web/schibsted-grotesk-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Schibsted'; src: url('fonts/web/schibsted-grotesk-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('fonts/EBGaramond-Regular.ttf'); font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; src: url('fonts/BodoniModa-Regular.ttf'); font-display: swap; }
@font-face { font-family: 'Sorts Mill Goudy'; src: url('fonts/SortsMillGoudy-Regular.ttf'); font-display: swap; }

:root {
  --paper: #EFE9DC;      /* laid paper, a little grey in the warmth */
  --paper-2: #E6DFCF;    /* the table the pieces sit on */
  --paper-3: #F6F2E8;    /* inputs */
  --ink: #1B2520;        /* fern ink */
  --ink-2: #47504A;
  --ink-3: #6C716A;
  --rule: #CBC2B0;
  --warn: #7A3A1E;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 36px; --s7: 56px; --s8: 88px; --s9: 136px;
  --f-display: 'Cormorant', 'EB Garamond', Garamond, Georgia, serif;
  --f-body: 'Schibsted', 'Helvetica Neue', Arial, sans-serif;
  --max: 1280px;
  --gut: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16.5px/1.62 var(--f-body); font-feature-settings: 'kern'; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.005em; margin: 0; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.9rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.06; }
h3 { font-size: 1.7rem; line-height: 1.1; }
p { margin: 0 0 var(--s4); }
.eyebrow { font: 500 0.72rem/1.4 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--s4); }
.lede { font-size: 1.13rem; color: var(--ink-2); max-width: 36em; }
.fine, .hint { font-size: 0.86rem; color: var(--ink-3); }
.hint.warn, .warn { color: var(--warn); }
.hint.ok { color: var(--ink); }

/* masthead */
.mast { border-bottom: 1px solid var(--rule); }
.mast .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s5); padding-top: var(--s5); padding-bottom: var(--s4); }
.mark { font: 500 1.65rem/1 var(--f-display); text-decoration: none; letter-spacing: 0.01em; white-space: nowrap; }
.mark i { font-style: italic; }
.mast nav { display: flex; gap: var(--s5); flex-wrap: wrap; justify-content: flex-end; font-size: 0.92rem; }
.mast nav a { text-decoration: none; color: var(--ink-2); }
.mast nav a:hover, .mast nav a[aria-current] { color: var(--ink); text-decoration: underline; }

/* buttons: an ink block and a quiet underlined link */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 0; text-decoration: none; cursor: pointer; font-weight: 500; letter-spacing: 0.01em; }
.btn:hover { background: #2C3832; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.quiet { background: none; border: 0; padding: 12px 0; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; cursor: pointer; min-height: 44px; }
.quiet:hover { text-decoration-thickness: 2px; }
.quiet[disabled] { color: var(--ink-3); cursor: wait; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s8); align-items: center; padding-top: var(--s8); padding-bottom: var(--s8); }
.hero-links { display: flex; gap: var(--s6); align-items: center; flex-wrap: wrap; margin-top: var(--s6); }
.hero-stage { margin: 0; position: relative; aspect-ratio: 1 / 1.08; background: var(--paper-2); }
.hero-folder { position: absolute; left: 12%; top: 8%; width: 56%; box-shadow: 0 1px 0 rgba(27, 37, 32, 0.06), 0 22px 36px -24px rgba(27, 37, 32, 0.5); }
.hero-card { position: absolute; left: 62%; top: 44%; width: 27%; box-shadow: 0 1px 0 rgba(27, 37, 32, 0.06), 0 18px 28px -20px rgba(27, 37, 32, 0.5); }

/* section heads */
.section-head { max-width: 760px; margin-bottom: var(--s7); }
.section-head h2 { margin-bottom: var(--s4); }

/* builder */
.builder { background: var(--paper); border-top: 1px solid var(--rule); padding: var(--s8) 0; }
.build-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: var(--s7); align-items: start; }
.controls { display: grid; gap: 0; }
.step { border: 0; border-top: 1px solid var(--rule); margin: 0; padding: var(--s5) 0 var(--s5); min-width: 0; }
.step legend { font: 500 1.35rem/1.2 var(--f-display); padding: 0; margin-bottom: var(--s4); float: left; width: 100%; }
.step legend + * { clear: both; }
.step .n { font: italic 500 1rem/1 var(--f-display); color: var(--ink-3); margin-right: var(--s3); }
.step.muted { opacity: 0.55; }
.f { display: grid; gap: 6px; font-size: 0.9rem; margin-bottom: var(--s4); color: var(--ink-2); }
.f.inline { margin: var(--s4) 0 0; }
.opt { color: var(--ink-3); font-size: 0.82rem; }
.in { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--rule); border-bottom-color: var(--ink-3); border-radius: 0; background: var(--paper-3); color: var(--ink); font-size: 1rem; }
.in:focus { border-color: var(--ink); outline: none; box-shadow: inset 0 -1px 0 var(--ink); }
select.in { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231B2520' stroke-width='1.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 10px; padding-right: 32px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.logo-row { display: flex; align-items: center; gap: var(--s5); }
.file { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--ink); cursor: pointer; color: var(--ink); }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.options { display: grid; gap: var(--s2); }
.options.row { grid-template-columns: repeat(3, 1fr); }
.opt-row { display: grid; grid-template-columns: 18px 1fr; gap: var(--s3); align-items: start; padding: var(--s2) 0; cursor: pointer; }
.opt-row input, .opt-chip input { accent-color: var(--ink); margin: 5px 0 0; width: 16px; height: 16px; }
.opt-row b { display: block; font: 500 1.2rem/1.2 var(--f-display); }
.opt-row small { display: block; color: var(--ink-3); font-size: 0.84rem; line-height: 1.45; }
.opt-chip { display: flex; align-items: center; gap: var(--s2); cursor: pointer; min-height: 44px; font-size: 1.15rem; }
.opt-chip input { margin: 0; }
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px var(--s4); }
.sw { display: flex; align-items: center; gap: var(--s3); min-height: 40px; padding: 4px 0; background: none; border: 0; cursor: pointer; text-align: left; font-size: 0.9rem; color: var(--ink-2); }
.sw i { width: 22px; height: 22px; flex: none; border: 1px solid rgba(27, 37, 32, 0.25); }
.sw[aria-pressed='true'] { color: var(--ink); }
.sw[aria-pressed='true'] i { outline: 1px solid var(--ink); outline-offset: 3px; }
.sw[aria-pressed='true']::after { content: ''; width: 14px; height: 1px; background: var(--ink); margin-left: auto; }

.viewer { position: sticky; top: var(--s4); min-width: 0; }
.viewer-bar { display: flex; justify-content: space-between; align-items: end; gap: var(--s4); border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.tabs, .modes { display: flex; gap: var(--s5); flex-wrap: wrap; }
.tab, .modes button { background: none; border: 0; padding: var(--s3) 0; min-height: 44px; cursor: pointer; color: var(--ink-3); border-bottom: 1px solid transparent; margin-bottom: -1px; font-size: 0.95rem; }
.tab[aria-selected='true'], .modes button[aria-pressed='true'] { color: var(--ink); border-bottom-color: var(--ink); }
.modes { gap: var(--s4); }
.modes button { font-size: 0.86rem; }
.stage { background: var(--paper-2); padding: clamp(18px, 4vw, 48px); min-height: 420px; display: grid; gap: var(--s6); align-content: start; }
.spread-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 var(--s2); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; }
.pair.fold { gap: 0; }
.pair.fold .leaf + .leaf svg { box-shadow: inset 1px 0 0 rgba(27, 37, 32, 0.06); }
.pair.cards { max-width: 560px; margin: 0 auto; width: 100%; }
.single.sign { max-width: 460px; margin: 0 auto; width: 100%; }
.leaf { margin: 0; }
.leaf svg { width: 100%; height: auto; box-shadow: 0 1px 0 rgba(27, 37, 32, 0.05), 0 16px 30px -22px rgba(27, 37, 32, 0.55); }
.pair.fold .leaf svg { box-shadow: 0 16px 30px -24px rgba(27, 37, 32, 0.5); }
.leaf figcaption { font-size: 0.78rem; color: var(--ink-3); margin-top: var(--s2); }
.caption { font-size: 0.86rem; color: var(--ink-3); margin: var(--s3) 0 var(--s5); max-width: 44em; }
.cta-strip { display: flex; gap: var(--s6); align-items: center; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: var(--s5); }
.loading { color: var(--ink-3); }

/* collections */
.collections { padding-top: var(--s9); padding-bottom: var(--s8); }
.col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s7); }
.col-art { background: var(--paper-2); padding: 12% 22%; margin-bottom: var(--s5); }
.col-art svg { box-shadow: 0 14px 26px -18px rgba(27, 37, 32, 0.55); }
.col h3 { margin-bottom: var(--s3); }
.col p { color: var(--ink-2); }

/* bands */
.band { padding-top: var(--s8); padding-bottom: var(--s8); border-top: 1px solid var(--rule); }
.two { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s8); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: var(--s4) 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.list li:first-child { padding-top: 0; }
.list b { color: var(--ink); font-weight: 500; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.price { border-top: 1px solid var(--ink); padding-top: var(--s4); }
.price .who { font-size: 0.82rem; letter-spacing: 0.06em; color: var(--ink-2); margin-bottom: var(--s2); }
.price .amt { font: 500 3rem/1 var(--f-display); margin-bottom: var(--s3); }
.price .amt span { font: 400 0.9rem var(--f-body); color: var(--ink-3); margin-left: 6px; }
.price p:last-child { color: var(--ink-2); font-size: 0.95rem; }

/* inner pages */
.page-head { padding: var(--s8) 0 var(--s6); max-width: 820px; }
.page-head h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); margin-bottom: var(--s5); }
.prose { max-width: 40em; padding-bottom: var(--s8); }
.prose h2 { font-size: 1.9rem; margin: var(--s7) 0 var(--s3); }
.prose h3 { font-size: 1.4rem; margin: var(--s6) 0 var(--s2); }
.prose p, .prose li { color: var(--ink-2); }
.prose ol, .prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--s2); }
.steps-list { counter-reset: s; list-style: none; padding: 0; max-width: 46em; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; padding: var(--s5) 0; border-top: 1px solid var(--rule); }
.steps-list li::before { content: counter(s); font: italic 500 2rem/1 var(--f-display); color: var(--ink-3); }
.steps-list h3 { margin-bottom: var(--s2); }
.steps-list p { color: var(--ink-2); margin: 0; }
.faq { max-width: 46em; padding-bottom: var(--s8); }
.faq details { border-top: 1px solid var(--rule); padding: var(--s4) 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font: 500 1.35rem/1.3 var(--f-display); list-style: none; display: flex; justify-content: space-between; gap: var(--s4); min-height: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--f-body); color: var(--ink-3); }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { color: var(--ink-2); margin: var(--s3) 0 0; }
.callout { border-top: 1px solid var(--ink); padding: var(--s5) 0 var(--s8); display: flex; justify-content: space-between; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.callout p { font: 500 1.6rem/1.2 var(--f-display); margin: 0; }

/* private preview */
.notice { background: var(--paper-2); border-bottom: 1px solid var(--rule); font-size: 0.9rem; }
.notice .wrap { padding-top: var(--s3); padding-bottom: var(--s3); }
.pv-tabs { display: flex; gap: var(--s5); border-bottom: 1px solid var(--rule); margin-bottom: 0; flex-wrap: wrap; }

/* footer */
.foot { border-top: 1px solid var(--rule); padding: var(--s7) 0 var(--s6); font-size: 0.88rem; color: var(--ink-2); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s6); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.foot .mark { font-size: 1.3rem; display: inline-block; margin-bottom: var(--s3); }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(27, 37, 32, 0.45); display: none; align-items: center; justify-content: center; padding: var(--s4); z-index: 10; }
.modal[data-open='true'] { display: flex; }
.sheet { background: var(--paper); max-width: 520px; width: 100%; max-height: 92vh; overflow: auto; padding: var(--s6); border-top: 3px solid var(--ink); }
.sheet h3 { margin-bottom: var(--s4); }
.sheet .note { background: var(--paper-2); padding: var(--s3) var(--s4); font-size: 0.92rem; }
.sheet .btn { width: 100%; margin-top: var(--s4); }
.setname { margin: var(--s4) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: var(--s3) 0; }
.setname summary { cursor: pointer; min-height: 32px; }
.progress { height: 2px; background: var(--rule); margin-top: var(--s4); }
.progress i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.2s; }
.msg { font-size: 0.9rem; margin-top: var(--s3); color: var(--ink-2); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: var(--s6); padding-top: var(--s6); }
  .hero-stage { max-width: 560px; }
  .build-grid { grid-template-columns: 1fr; }
  .viewer { position: static; order: -1; }
  .two { grid-template-columns: 1fr; gap: var(--s5); }
  .col-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .col-art { padding: 8% 28%; }
  .prices { grid-template-columns: 1fr; }
  .foot .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .mast .wrap { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .mast nav { justify-content: flex-start; gap: var(--s4); }
  .pair { gap: var(--s3); }
  .pair.fold { grid-template-columns: 1fr; gap: var(--s4); }
  .options.row { grid-template-columns: 1fr 1fr 1fr; }
  .stage { padding: 16px; }
  .cta-strip { gap: var(--s3); }
  .cta-strip .btn { width: 100%; }
  .viewer-bar { gap: 0; }
}

/* v0.2: photography */
.hero2 { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 86vh; border-bottom: 1px solid var(--rule); }
.hero2-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero2-text { align-self: center; padding: var(--s8) var(--s8) var(--s8) var(--s7); max-width: 40rem; }
.hero2-text h1 { font-size: clamp(2.3rem, 3.6vw, 3.6rem); line-height: 1.08; margin-bottom: var(--s5); }
.offer { padding-top: var(--s9); padding-bottom: var(--s8); }
.offer-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s8); }
.offer-grid h3 { font-size: 1.6rem; margin-bottom: var(--s4); }
.offer .prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s6); }
.rooms { padding: 0 0 var(--s9); }
.rooms-strip { display: grid; grid-template-columns: 1.25fr 1.25fr 1fr; gap: var(--s3); padding: 0 var(--s3); }
.rooms-strip img, .col-photos img, .region-img img, .ty-img img { width: 100%; display: block; object-fit: cover; }
.rooms-strip img { aspect-ratio: 3 / 2; }
.rooms-strip figure:last-child img { aspect-ratio: 3 / 2.5; }
figure { margin: 0; }
figcaption { font-size: 0.86rem; color: var(--ink-3); margin-top: var(--s3); }
.col-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s7); }
.col-photos img { aspect-ratio: 4 / 5; }
.col-photos figcaption { font-size: 0.98rem; color: var(--ink-2); }
.region { padding-top: var(--s9); padding-bottom: var(--s9); align-items: center; }
.region-img img { aspect-ratio: 4 / 5; }
.ty-img img { aspect-ratio: 4 / 5; }
@media (max-width: 900px) {
  .hero2 { grid-template-columns: 1fr; min-height: 0; }
  .hero2-img img { aspect-ratio: 1 / 1; height: auto; }
  .hero2-text { padding: var(--s7) var(--s5); }
  .offer-grid, .col-photos, .rooms-strip, .offer .prices { grid-template-columns: 1fr; }
}
.colorways { padding-top: var(--s9); }
.colorways img { width: 100%; display: block; margin-top: var(--s6); }
.plants { padding-top: var(--s9); }
.plants img { width: 100%; display: block; margin-top: var(--s6); }
.rooms-strip img { aspect-ratio: 4 / 5 !important; }
.band-img img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.band-img { margin-bottom: var(--s9); }
.rooms-strip { grid-template-columns: repeat(3, 1fr) !important; }
.rooms-strip img { object-fit: cover; }

/* photograph + formats */
.photo .steps{list-style:none;counter-reset:s;display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;padding:0;margin:2rem 0 3rem}
.photo .steps li{counter-increment:s;border-top:1px solid currentColor;padding-top:1rem;line-height:1.55}
.photo .steps li::before{content:counter(s);display:block;font-style:italic;font-size:1.4rem;margin-bottom:.4rem;opacity:.7}
.photo .steps b{display:block;font-weight:500;margin-bottom:.25rem}
.photo figure,.formats figure{margin:0 0 2.5rem}
.photo img,.formats img{width:100%;height:auto;display:block}
.photo figure.narrow{max-width:760px;margin-inline:auto}
.photo figcaption,.formats figcaption{font-style:italic;margin-top:.8rem;max-width:62ch;opacity:.8}
.photo,.formats{padding-top:5rem;padding-bottom:2rem}
@media (max-width:760px){.photo .steps{grid-template-columns:1fr;gap:1.2rem}}
.look-photos{display:grid;grid-template-columns:2fr 1fr 1fr;gap:1.5rem;align-items:start;margin-bottom:3rem}
.look-photos figure{margin:0}
.look-photos figcaption{font-style:normal;font-size:.95rem}
@media (max-width:760px){.look-photos{grid-template-columns:1fr}}
