/* Design system page (tasarim/). Shared tokens and components come from style.css and home.css. */
@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url("fonts/Oswald-Medium.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-display: swap; src: url("fonts/DMSerifDisplay-Regular.woff2") format("woff2"); }
@font-face { font-family: "Bebas Neue"; font-display: swap; src: url("fonts/BebasNeue-Regular.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 900; font-display: swap; src: url("fonts/PlayfairDisplay-Black.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-weight: 700; font-display: swap; src: url("fonts/SpaceMono-Bold.woff2") format("woff2"); }

.ds {
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --an-band: #6B3FA0;
  overflow-wrap: break-word;
}
@media (prefers-color-scheme: dark) { .ds { --an-band: #B08CEB; } }
.ds code { font: 600 .86em/1.3 var(--mono); }
.ds .title { font-size: clamp(36px, 5.6vw, 64px); }
.ds .section { scroll-margin-top: 0; }
.ds-band { background: color-mix(in srgb, var(--paper) 50%, var(--wall)); }
.ds-h3 { font-size: clamp(24px, 3vw, 32px); margin: 48px 0 16px; }
.ds-text { color: var(--ink-soft); max-width: 44em; margin-bottom: 24px; }
.ds-text-tight { color: var(--ink-soft); margin-top: 16px; font-size: 15px; }

/* Status tags: what the app does today versus a written rule */
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.tag-now { background: var(--ink); color: var(--wall); }
.tag-rule { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.ds-night .tag-rule { color: var(--on-night); box-shadow: inset 0 0 0 1.5px var(--on-night); }
.tag-line { margin-top: 20px; color: var(--ink-soft); max-width: 46em; }
.ds-night .tag-line { color: var(--on-night-soft); }
.ds-legend { font-size: 15px; color: var(--ink-soft); max-width: 36em; line-height: 1.9; }

html:not(.js) .ds-hero-phone, html:not(.js) .sc-controls { display: none; }

/* Hero */
.ds-hero { padding: 112px 0 40px; }
.ds-hero-grid { display: grid; gap: 40px; align-items: center; }
.ds-hero h1 { font-size: clamp(44px, 8vw, 88px); line-height: 1.02; margin-bottom: 22px; }
.ds-hero-phone { width: min(70vw, 280px); justify-self: center; margin: 0; }
@media (min-width: 900px) { .ds-hero-grid { grid-template-columns: 1.3fr .7fr; } }
.ds-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.ds-toc a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 600;
  color: var(--ink); text-decoration: none; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border);
}
.ds-toc a:hover { background: var(--paper); }

/* Principles */
.ds-principles { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; gap: 16px; }
.ds-principles li { counter-increment: p; padding: 24px; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1px var(--border); }
.ds-principles li::before { content: counter(p); display: block; font: 700 40px/1 "Oswald", sans-serif; color: var(--band-text); margin-bottom: 12px; }
.ds-principles h3 { font-size: 24px; margin-bottom: 8px; }
.ds-principles p { color: var(--ink-soft); }
@media (min-width: 700px) { .ds-principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .ds-principles { grid-template-columns: repeat(3, 1fr); } }
.ds-notes { display: grid; gap: 24px; margin-top: 40px; }
.ds-notes h3 { font-size: 20px; margin-bottom: 6px; }
.ds-notes p { color: var(--ink-soft); }
@media (min-width: 700px) { .ds-notes { grid-template-columns: repeat(2, 1fr); } }

/* Leaf anatomy */
.anatomy { display: grid; gap: 40px; align-items: start; }
@media (min-width: 860px) { .anatomy { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 64px; } }
.anatomy-leaf { margin: 0; width: min(100%, 400px); }
.anatomy-leaf figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.mk {
  display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%;
  font: 700 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0;
  background: var(--ink); color: var(--wall); margin-left: auto;
}
.an-rings { display: flex; justify-content: center; gap: 120px; height: 14px; position: relative; z-index: 2; margin-bottom: -7px; }
.an-rings span { width: 14px; height: 14px; border-radius: 7px; background: var(--ink-soft); }
.an-rings .mk { position: absolute; left: calc(50% + 74px); top: -6px; }
.an-leaf { background: var(--paper); border-radius: 6px 6px 3px 3px; overflow: hidden; }
.an-band { height: 30px; background: var(--an-band); display: flex; align-items: center; padding: 0 8px 0 24px; }
.mk-on { background: #FFFDF7; color: #1B1A17; }
.an-body { padding: 18px 8px 16px 24px; }
.an-body p { display: flex; align-items: center; gap: 8px; }
.an-date { font-size: 12px; font-weight: 700; letter-spacing: 1.7px; color: var(--band-text); }
.an-title { font-size: 18px; font-weight: 600; margin-top: 8px; }
.an-num { font: 700 clamp(104px, 34vw, 150px)/1 "Oswald", "Arial Narrow", sans-serif; font-variant-numeric: tabular-nums; }
.an-unit { font: 500 22px/1.4 "Oswald", sans-serif; letter-spacing: .08em; }
.an-note { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.an-stack {
  position: relative; height: 26px; margin: 0 4px; border-radius: 0 0 4px 4px;
  background: repeating-linear-gradient(var(--paper) 0 2px, var(--stack) 2px 3px);
  border-bottom: 2px solid var(--rule); display: flex; align-items: center; padding-right: 4px;
}
.anatomy-list { margin: 0; padding-left: 26px; display: grid; gap: 12px; color: var(--ink-soft); }
.anatomy-list b { color: var(--ink); }
.anatomy-list li::marker { font-weight: 700; color: var(--ink); }
.chip-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row li { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--chip); box-shadow: inset 0 0 0 1px var(--border); }

/* Color tokens */
.tok-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.tok { display: grid; gap: 6px 20px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.tok-name p { color: var(--ink-soft); font-size: 15px; }
.tok-val { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tok-mode { width: 38px; color: var(--ink-soft); font-size: 13px; font-weight: 600; flex: none; }
.ds i { font-style: normal; }
.tok-val i, .theme-hex td i { display: inline-block; flex: none; width: 24px; height: 24px; border-radius: 7px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent); }
@media (min-width: 760px) { .tok { grid-template-columns: 1fr 190px 190px; } }
.band-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 12px; }
.band-list li { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--border); font-size: 14px; }
.band-list code { font-size: 12px; color: var(--ink-soft); }
.band-pair { display: grid; grid-template-columns: 1fr 1fr; height: 32px; border-radius: 8px; overflow: hidden; margin-bottom: 6px; }

/* Type */
.t-oswald { font-family: "Oswald", "Arial Narrow", sans-serif; }
.f-serif, .f-serif .m-num { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; }
.f-bebas { font-family: "Bebas Neue", "Oswald", sans-serif; font-weight: 400; }
.f-playfair { font-family: "Playfair Display", Georgia, serif; font-weight: 900; }
.f-mono { font-family: "Space Mono", var(--mono); font-weight: 700; }
.type-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.type-list li { display: grid; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: center; }
.type-meta { display: grid; gap: 2px; }
.type-meta span { font-size: 13px; color: var(--ink-soft); }
@media (min-width: 760px) { .type-list li { grid-template-columns: 240px 1fr; } }
.face-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 12px; }
.face-list li { display: grid; align-content: start; padding: 16px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--border); }
.face-list p { height: 104px; line-height: 104px; }
.face-list b { font-size: 15px; }
.face-list span { font-size: 13px; color: var(--ink-soft); }

/* Spacing and radius */
.measure { display: grid; gap: 16px 64px; }
.measure .ds-h3 { margin-top: 0; }
@media (min-width: 760px) { .measure { grid-template-columns: 1fr 1fr; } }
.space-list, .radius-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.space-list li { display: grid; grid-template-columns: 64px 56px 1fr; align-items: center; gap: 12px; }
.space-list i { display: block; height: 20px; background: var(--band); border-radius: 2px; }
.space-list span { color: var(--ink-soft); font-size: 15px; }
.radius-list li { display: grid; grid-template-columns: 64px 64px 1fr; align-items: center; gap: 12px; }
.radius-list i { display: block; width: 64px; height: 64px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.radius-list span { color: var(--ink-soft); font-size: 15px; }

/* Themes */
.family { margin-top: 40px; }
.family h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }
.family h3 span { font: 600 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; color: var(--ink-soft); margin-left: 6px; }
.theme-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); gap: 16px; }
.theme { padding: 14px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--border); min-width: 0; }
.theme-head { margin-bottom: 12px; }
.theme-head h4 { margin: 0; font: 600 20px/1.25 "Oswald", sans-serif; }
.theme-head p { font-size: 13px; color: var(--ink-soft); }
.theme-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-fig { margin: 0; }
.m-fig figcaption { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--ink-soft); text-align: center; }
.m-wall { padding: 14px 12px 16px; border-radius: 10px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent); }
.m-leaf {
  display: grid; justify-items: center; border-radius: 4px 4px 2px 2px; padding-bottom: 8px;
  background-color: var(--p); color: var(--i); box-shadow: 0 1px 2px rgb(0 0 0 / .18);
}
.m-band { height: 8px; width: 100%; background: var(--b); border-radius: 4px 4px 0 0; }
.m-stripe { height: 3px; width: 100%; }
.m-rule { height: 6px; width: 76%; margin-top: 7px; border-block: 1.5px solid var(--i); }
.m-num { font: 700 38px/1.15 "Oswald", sans-serif; font-variant-numeric: tabular-nums; margin-top: 2px; }
.m-unit { font: 600 11px/1.2 "Oswald", sans-serif; letter-spacing: .1em; color: var(--bt); }
.k-grid { background-image: linear-gradient(var(--g) 1px, transparent 1px), linear-gradient(90deg, var(--g) 1px, transparent 1px); background-size: 9px 9px; }
.theme-hex { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 12px; }
.theme-hex th { text-align: left; font-weight: 600; color: var(--ink-soft); padding: 2px 4px 2px 0; }
.theme-hex td { padding: 2px 0; white-space: nowrap; }
.theme-hex td i { width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.theme-hex code { font-size: 11.5px; font-weight: 500; }

/* Scenes: the page's dark panel, like the home page's story section */
.ds-night { background: var(--night); color: var(--on-night); border-radius: 40px; margin: 0 8px; }
@media (min-width: 900px) { .ds-night { margin: 0 16px; } }
.ds-night .eyebrow { color: color-mix(in srgb, var(--band) 60%, #fff); }
.ds-night .section-lead, .ds-night .ds-steps { color: var(--on-night-soft); }
.ds-night .section-lead strong, .ds-night .ds-steps b { color: var(--on-night); }
.sc-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.ds-toggle {
  font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--night-2); color: var(--on-night); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28);
}
.ds-toggle[aria-pressed="true"] { background: var(--on-night); color: var(--night); box-shadow: none; }
.ds-toggle[hidden] { display: none; }
.ds-night :focus-visible { outline-color: var(--on-night); }
.sc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 32px 20px; }
.sc-gallery.is-gray canvas { filter: grayscale(1); }
.sc-card { margin: 0; display: grid; gap: 12px; justify-items: center; min-width: 0; align-content: start; }
.sc-card figcaption { width: 100%; max-width: 244px; }
.sc-card figcaption b { display: block; font: 600 20px/1.3 "Oswald", sans-serif; }
.sc-card figcaption span { display: block; font-size: 14px; color: var(--on-night-soft); }
.sc-phone {
  position: relative; width: 100%; max-width: 244px; aspect-ratio: 244 / 500; border-radius: 34px; overflow: hidden;
  background: #111; border: 6px solid #17161A; box-shadow: 0 18px 34px -18px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .08);
}
.ds-hero-phone { max-width: 280px; }
.sc-phone canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sc-island { position: absolute; top: 8px; left: 50%; width: 30%; height: 16px; margin-left: -15%; border-radius: 9px; background: #000; z-index: 3; }
.sc-leaf {
  position: absolute; left: 13%; right: 13%; top: 22%; z-index: 2; container-type: inline-size; border-radius: 6px;
  background: var(--lp); color: var(--li); box-shadow: 0 2px 2px rgb(0 0 0 / .14), 0 14px 22px -8px rgb(0 0 0 / .42);
}
.sc-bar { position: relative; height: 9cqw; background: var(--lb); border-radius: 6px 6px 0 0; }
.sc-bar::before, .sc-bar::after { content: ""; position: absolute; top: -3cqw; width: 6cqw; height: 6cqw; border-radius: 50%; background: #55524C; }
.sc-bar::before { left: 22%; }
.sc-bar::after { right: 22%; }
.sc-in { padding: 6cqw 8cqw 8cqw; }
.sc-lead { font-size: 9cqw; font-weight: 600; line-height: 1.3; }
.sc-num { font: 700 50cqw/1.05 "Oswald", "Arial Narrow", sans-serif; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.sc-unit { font: 500 9cqw/1.3 "Oswald", sans-serif; letter-spacing: .08em; }
.ds-night .ds-h3 { color: var(--on-night); }
.ds-steps { margin: 0; padding-left: 24px; display: grid; gap: 10px; max-width: 44em; }

/* Tables */
.ds .table-wrap { margin-top: 8px; }
.ds-table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 15px; }
.ds-table th, .ds-table td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.ds-table thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); border-top: 0; }
.ds-table tbody th { font-weight: 600; }
.ds-table td { color: var(--ink-soft); }
.ds-night .ds-table th { color: var(--on-night); }
.ds-night .ds-table thead th, .ds-night .ds-table td { color: var(--on-night-soft); }
.ds-night .ds-table th, .ds-night .ds-table td { border-color: rgb(255 255 255 / .14); }
/* Narrow screens: every row stacks, so no table needs a side scroll */
@media (max-width: 640px) {
  .ds-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ds-table, .ds-table tbody, .ds-table tr, .ds-table th, .ds-table td { display: block; }
  .ds-table tbody tr { padding: 12px 0; border-top: 1px solid var(--border); }
  .ds-night .ds-table tbody tr { border-color: rgb(255 255 255 / .14); }
  .ds-table tbody th, .ds-table tbody td { padding: 2px 0; border: 0; }
}

/* Paper materials: the textures stand for the material, they are not scans */
.paper-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.paper-list li { padding: 16px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--border); }
.paper-list i { position: relative; display: block; height: 104px; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12), 0 6px 14px -8px rgb(0 0 0 / .45); margin-bottom: 14px; }
.paper-list h3 { font-size: 22px; margin-bottom: 8px; }
.paper-list dl { margin: 0; display: grid; gap: 4px; font-size: 14px; }
.paper-list dl div { display: grid; grid-template-columns: 108px 1fr; gap: 8px; }
.paper-list dt { color: var(--ink-soft); font-weight: 600; }
.paper-list dd { margin: 0; }
.p-birinci { background: #FFFDF7; }
.p-saman { background: #E9DBB4 radial-gradient(#9E8755 1px, transparent 1.2px) 0 0 / 9px 11px; }
.p-kraft { background: #BE9A6B repeating-linear-gradient(92deg, rgb(70 40 10 / .12) 0 1px, transparent 1px 5px); }
.p-gazete { background: #EDE9DF repeating-linear-gradient(0deg, rgb(30 30 30 / .2) 0 1px, transparent 1px 6px); }
.p-ahar { background: linear-gradient(135deg, #FFF8E7, #EADFC2 60%, #FFF8E7); }
.p-ebru { background: #FFFDF7; }
.p-ebru::after { content: ""; position: absolute; inset: auto 0 0; height: 22px; background: repeating-radial-gradient(circle at 20% 100%, #1B4F8F 0 4px, #C8201A 4px 7px, #F2C14E 7px 10px); }

/* Rule cards */
.rule-grid { display: grid; gap: 16px; }
.rule-card { padding: 22px; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1px var(--border); }
.rule-card h3 { font-size: 22px; margin: 12px 0 8px; }
.rule-card > p { color: var(--ink-soft); }
.rule-card .mini-list { margin-top: 14px; }
.mini-list-1 { grid-template-columns: 1fr !important; gap: 10px; }
@media (min-width: 700px) { .rule-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .rule-grid:not(.rule-grid-2) { grid-template-columns: repeat(3, 1fr); } }

/* Scene gallery: every scene, day beside night, from the app. */
.ds-count { margin: 32px 0 0; }
.scene-gallery { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px 16px; }
.scene-gallery figure { margin: 0; }
.scene-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-radius: 12px; overflow: hidden; }
.scene-pair img { display: block; width: 100%; height: auto; }
.scene-gallery figcaption { margin-top: 6px; font-weight: 600; font-size: 14px; }
