@font-face { font-family: "Linux Libertine G"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/LinLibertine-Regular.woff2") format("woff2"); }
@font-face { font-family: "Linux Libertine G"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/LinLibertine-Italic.woff2") format("woff2"); }
@font-face { font-family: "Linux Libertine G"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/LinLibertine-Semibold.woff2") format("woff2"); }
@font-face { font-family: "Linux Libertine G"; font-style: italic; font-weight: 600; font-display: swap; src: url("/fonts/LinLibertine-SemiboldItalic.woff2") format("woff2"); }
@font-face { font-family: "Linux Libertine G"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/LinLibertine-Bold.woff2") format("woff2"); }
@font-face { font-family: "Linux Libertine G"; font-style: italic; font-weight: 700; font-display: swap; src: url("/fonts/LinLibertine-BoldItalic.woff2") format("woff2"); }
@font-face { font-family: "Linux Libertine Display G"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/LinLibertine-Display.woff2") format("woff2"); }

/* lynpublish.ing — single stylesheet
   Palette (Endi, 2026-08-19): CMY gradient over a gray-based light theme and a dark theme.
   Theme rules: html.theme-light / html.theme-dark set by the toggle (persisted in localStorage);
   a head script defaults to the visitor's OS preference before first paint.
   Card top borders stay MEDIUM GRAY in both themes (Endi). Whole site in Linux Libertine G. */

:root {
  /* light theme (gray-leaning, some parts kept light) */
  --paper:   #e8e9ec;
  --paper-2: #dcdee2;
  --card:    #f5f5f7;
  --ink:     #26242b;
  --ink-2:   #575b63;
  --rule:    #c6c9cf;
  --gray-border: #9a9ea6;   /* card top border — fixed in both themes */

  --cyan:    #2e7f93;
  --magenta: #a4568b;
  --yellow:  #96751d;
  --magenta-2: #b96ea0;

  --hero-a: #aadbe6;  /* brighter CMY for the hero band (Endi: slightly brighter) */
  --hero-b: #eabfdb;
  --hero-c: #f2e09f;
  --hero-a-dark: #1d3a42;
  --hero-b-dark: #402a3c;
  --hero-c-dark: #45402a;

  --grad-line: linear-gradient(90deg, var(--cyan) 0%, var(--magenta) 50%, var(--yellow) 100%);
  --grad-text: linear-gradient(100deg, var(--cyan) 0%, var(--magenta) 55%, var(--yellow) 100%);
  --shadow: rgba(50, 45, 60, .18);

  --max:     68rem;
  --serif:   "Linux Libertine G", "Linux Libertine", "Libertinus Serif", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:    "Linux Libertine G", "Linux Libertine", "Libertinus Serif", "Palatino Linotype", Palatino, Georgia, serif;
  --display: "Linux Libertine Display G", "Linux Libertine G", Georgia, serif;
}

html.theme-dark {
  --paper:   #17181b;
  --paper-2: #1e2024;
  --card:    #24262b;
  --ink:     #e8e9eb;
  --ink-2:   #a4a8b0;
  --rule:    #34373d;

  --cyan:    #6cc3d8;
  --magenta: #d290bd;
  --yellow:  #d5b95e;
  --magenta-2: #dfa9cc;

  --shadow: rgba(0, 0, 0, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); line-height: 1.6;
  transition: background-color .5s ease, color .5s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color .3s ease; }
a:hover { color: var(--magenta); }

h1, h2, h3, .display { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }

.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }

/* header */
.site-header { background: var(--paper); position: sticky; top: 0; z-index: 10; transition: background-color .5s ease; }
.site-header::after { content: ""; display: block; height: 3px; background: var(--grad-line); opacity: .75; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; }
.brand-group { display: flex; align-items: center; gap: .75rem; }

/* theme toggle — circle (light) morphs/rotates into square (dark) */
.theme-toggle { width: 2.1rem; height: 2.1rem; flex: none; border: 1px solid var(--rule); background: var(--card);
                border-radius: 8px; cursor: pointer; display: grid; place-items: center; padding: 0;
                transition: background-color .5s ease, border-color .5s ease; }
.theme-toggle .ti { width: 1.05rem; height: 1.05rem; background: var(--grad-text); border-radius: 50%;
                    transform: rotate(0deg); transition: border-radius .5s ease, transform .5s ease; }
html.theme-dark .theme-toggle .ti { border-radius: 3px; transform: rotate(225deg); }
.theme-toggle:hover { border-color: var(--gray-border); }

.brand { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .01em; line-height: 1.1; }
.brand span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { display: block; font-size: .8rem; font-weight: 400; font-style: italic; color: var(--ink-2); letter-spacing: .02em; margin-top: .15rem; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: flex-start; }
nav a { text-decoration: none; font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; display: block;
        background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav a small { display: block; text-align: center; font-size: .66rem; letter-spacing: .08em; font-weight: 600; opacity: .85; line-height: 1.1; margin-top: .1rem; }
nav a:hover, nav a[aria-current="page"] { filter: brightness(1.15); text-decoration: underline; text-decoration-color: var(--gray-border); text-underline-offset: 4px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); color: var(--ink); padding: .35rem .6rem; border-radius: 4px; font: inherit; }
@media (max-width: 800px) {
  .nav-toggle { display: inline-block; }
  nav { display: none; width: 100%; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: .8rem; padding: .5rem 0 1rem; }
  nav a small { text-align: left; }
  .site-header .wrap { flex-wrap: wrap; }
}

/* hero — CMY band; light and dark gradients crossfade for a smooth theme switch */
.hero-band { position: relative; isolation: isolate; color: var(--ink); }
.hero-band::before, .hero-band::after { content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity .6s ease; }
.hero-band::before { background: linear-gradient(120deg, var(--hero-a) 0%, var(--hero-b) 50%, var(--hero-c) 100%); opacity: 1; }
.hero-band::after  { background: linear-gradient(120deg, var(--hero-a-dark) 0%, var(--hero-b-dark) 50%, var(--hero-c-dark) 100%); opacity: 0; }
html.theme-dark .hero-band::before { opacity: 0; }
html.theme-dark .hero-band::after  { opacity: 1; }
.hero { padding: 4.5rem 0 3.5rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--magenta); font-weight: 700; margin-bottom: .8rem; }
html.theme-light .hero .eyebrow { color: #8d4477; }
.hero .series-title { font-family: var(--serif); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; font-size: clamp(1rem, 1.8vw, 1.25rem); color: var(--cyan); margin: 0 0 .2rem; }
html.theme-light .hero .series-title { color: #256a7c; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(3.2rem, 7.5vw, 5.6rem); margin-bottom: .4rem; }
.hero .lede { color: var(--ink-2); font-style: italic; font-family: var(--serif); font-size: 1.45rem; }
html.theme-dark .hero .lede, html.theme-dark .hero .muted, html.theme-dark .specs-strip { color: #c4c8cf; }
.specs-strip { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; padding: .9rem 0; border-top: 1px solid currentColor; margin-top: 1.2rem; font-size: .85rem; color: var(--ink-2); letter-spacing: .04em; }
.specs-strip { border-top-color: rgba(128,128,128,.4); }
.specs-strip b { color: var(--ink); font-weight: 600; }
.cover { width: min(22rem, 100%); margin-inline: auto; border-radius: 3px; overflow: hidden;
         box-shadow: 0 24px 50px var(--shadow), 0 0 0 1px rgba(128,128,128,.25); transform: rotate(-1.5deg); transition: transform .25s, box-shadow .5s ease; }
.cover:hover { transform: rotate(0) scale(1.015); }
.cover img { width: 100%; height: auto; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding-top: 2.5rem; } .hero .cover-col { order: -1; } }

/* buttons */
.btn { display: inline-block; padding: .75rem 1.4rem; border-radius: 4px; font-weight: 700; text-decoration: none; letter-spacing: .02em;
       background: #a4568b; color: #fff; border: 2px solid #a4568b; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: #b96ea0; border-color: #b96ea0; color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: rgba(128,128,128,.55); }
.btn.ghost:hover { background: rgba(128,128,128,.18); }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.4rem 0 .6rem; }

/* sections */
section.band { padding: 3rem 0; border-top: 1px solid var(--rule); transition: background-color .5s ease, border-color .5s ease; }
section.band.alt { background: var(--paper-2); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.6rem; }
.card { background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--gray-border); border-radius: 6px; padding: 1.4rem;
        transition: transform .15s, box-shadow .15s, background-color .5s ease, border-color .5s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--shadow); }
.card h3 { margin-top: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--magenta); }

/* prose pages */
.prose { max-width: 42rem; }
.prose h1 { margin-top: 2.5rem; }
.prose h2 { margin-top: 2rem; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.2rem; border-left: 3px solid var(--magenta); color: var(--ink-2); font-family: var(--serif); font-size: 1.25rem; font-style: italic; }
.meta { color: var(--ink-2); font-size: .9rem; margin-bottom: 1.8rem; }
.series { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.warn { border-left: 3px solid var(--yellow); padding: .6rem .9rem; background: rgba(150,117,29,.12); font-size: .9rem; color: var(--ink); border-radius: 0 4px 4px 0; transition: background-color .5s ease; }
dl.specs { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.4rem; margin: 1.5rem 0; }
dl.specs dt { color: var(--ink-2); } dl.specs dd { margin: 0; }
h1.stacked { display: inline-block; text-align: center; }
h1 small.sub, h2 small.sub { display: block; font-size: .5em; font-weight: 400; color: var(--ink-2); letter-spacing: .04em; margin-top: .15em; }
h1 small.note { display: block; font-size: .42em; font-weight: 400; font-style: italic; color: var(--ink-2); letter-spacing: 0; margin-top: .35em; }

.product { display: grid; grid-template-columns: 11rem 1fr; gap: 1.6rem; align-items: start; padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.product img { width: 100%; border-radius: 3px; box-shadow: 0 12px 28px var(--shadow); }
.product h2 { margin-top: 0; }
@media (max-width: 560px) { .product { grid-template-columns: 1fr; } .product img { max-width: 13rem; } }
.cover-inline { width: min(18rem, 100%); border-radius: 3px; box-shadow: 0 14px 32px var(--shadow); }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.post-list time { display: block; color: var(--ink-2); font-size: .85rem; margin-bottom: .2rem; }
.post-list a { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.post-list a:hover { color: var(--magenta); }

/* forms */
form.stack { display: grid; gap: .9rem; max-width: 32rem; }
label { font-weight: 600; font-size: .95rem; }
input, textarea { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--card); color: var(--ink); }
textarea { min-height: 8rem; resize: vertical; }
.notice { background: rgba(46,127,147,.12); border: 1px solid var(--rule); border-left: 4px solid var(--cyan); padding: .9rem 1.1rem; border-radius: 4px; transition: background-color .5s ease; }

.copy-btn { font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .03em; padding: .2rem .7rem; margin-left: .5rem;
            border: 1px solid var(--gray-border); border-radius: 4px; background: var(--card); color: var(--ink); cursor: pointer;
            transition: background-color .2s, border-color .2s; vertical-align: middle; }
.copy-btn:hover { border-color: var(--magenta); color: var(--magenta); }

/* footer */
.site-footer { padding: 2.2rem 0 2.6rem; color: var(--ink-2); font-size: .9rem; position: relative; transition: background-color .5s ease; }
.site-footer::before { content: ""; display: block; height: 3px; background: var(--grad-line); opacity: .75; margin-bottom: 1.6rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer .fnav { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; font-weight: 600; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--magenta); }
.site-footer .legal { display: block; margin-top: 1rem; opacity: .8; } .site-footer .legal p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01s !important; }
}

.placeholder { outline: 2px dashed var(--magenta-2); outline-offset: 2px; }  /* remove once real content lands */
