@layer reset, base, layout, components, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure { margin: 0; }
  img { display: block; max-width: 100%; height: auto; }
  a { color: inherit; }
}
@layer base {
  :root { color-scheme: light; --paper: #fbf8f0; --ink: #213d30; --muted: #586451; --line: #d4d7c6; --gold: #e6ad50; --light: #f0f0e3; --cream: #fffdf7; }
  html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
  body { background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  ::selection { background: #e9be70; color: #172e24; }
  h1, h2, h3, .quote, .dice-label { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
  h1 { font-size: clamp(3.25rem, 5.9vw, 5.5rem); line-height: 1.06; letter-spacing: -.055em; }
  h1 em { color: #567052; font-weight: 400; }
  h2 { font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.14; letter-spacing: -.035em; }
  h3 { font-size: 1.8rem; line-height: 1.2; letter-spacing: -.025em; }
  p + p { margin-top: .75rem; }
  a { text-underline-offset: .22em; text-decoration-thickness: 1px; }
  a:hover { text-decoration-thickness: 2px; }
  a:focus-visible, summary:focus-visible { outline: 3px solid #94600d; outline-offset: 6px; border-radius: 3px; }
  :target { scroll-margin-top: 2rem; }
}
@layer layout {
  .wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
  .site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; border-bottom: 1px solid var(--line); }
  .brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
  .brand img { width: 47px; height: 47px; border-radius: 50%; }
  .brand-name { font-family: Georgia, serif; font-size: 1.1rem; font-weight: bold; line-height: 1.15; letter-spacing: -.02em; }
  .brand-name small { display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-top: 5px; }
  nav { display: flex; align-items: center; gap: 32px; }
  nav a { font-size: .88rem; text-decoration: none; padding-block: 6px; }
  nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
  nav .nav-support { border: 1px solid var(--ink); border-radius: 5px; padding: 7px 17px; }
  .hero { display: grid; grid-template-columns: 1.12fr 1fr; gap: 32px; align-items: center; padding-block: 32px; }
  .hero-copy .eyebrow { margin-bottom: 14px; }
  .hero-copy .lede { margin-top: 14px; max-width: 500px; }
  .hero-copy .button { margin-top: 18px; }
  .hero-note { font-size: .75rem; color: var(--muted); margin-top: 12px; }
  .lodge { position: relative; width: min(100%, 340px); justify-self: center; padding: 0; }
  .lodge img { width: 100%; border-radius: 50%; }
  .lodge figcaption { position: absolute; left: 8%; bottom: 8px; font-family: Georgia, serif; font-style: italic; background: var(--paper); padding: 5px 13px; font-size: 1rem; transform: rotate(-4deg); }
  .lodge figcaption span { color: #96640f; margin-right: 8px; }
  .app-section { border-top: 1px solid var(--line); padding-block: 32px; }
  .portfolio { border-top: 1px solid var(--line); padding-block: 32px; }
  .app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .app-card { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); }
  .app-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
  .app-card-top img { width: 56px; height: 56px; border-radius: 12px; }
  .app-card-top .eyebrow { font-size: .58rem; letter-spacing: .1em; }
  .app-card h3 { font-size: 1.65rem; }
  .app-card > p { color: var(--muted); margin-top: 8px; font-size: .9rem; }
  .app-card > a { display: inline-block; margin-top: 8px; }
  .app-monogram { display: grid; place-items: center; width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px; background: #e3e7d6; font-family: Georgia, serif; font-size: 1.5rem; }
  .portfolio-note { margin-top: 16px; font-size: .8rem; color: var(--muted); max-width: 800px; }
  .section-heading { max-width: 650px; margin-bottom: 20px; }
  .section-heading h2 { margin-block: 8px 10px; }
  .section-heading > p:last-child { color: var(--muted); }
  .product-feature { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
  .product-intro { padding: 24px; background: var(--cream); }
  .app-identity { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
  .app-identity img { width: 72px; height: 72px; border-radius: 12px; }
  .app-identity h3 { font-size: 2rem; margin-top: 3px; }
  .product-intro > p:first-of-type { font-size: 1.1rem; }
  .product-intro .text-link { display: inline-block; margin-top: 14px; }
  .question-preview { background: var(--ink); color: #fbf8ee; padding: 24px; display: flex; flex-direction: column; justify-content: center; }
  .question-preview .eyebrow { color: #d4c69e; }
  .quote { font-size: clamp(1.8rem, 2.5vw, 2.45rem); line-height: 1.3; margin-top: 16px; letter-spacing: -.02em; }
  .preview-rule { width: 45px; height: 1px; background: #9ba68c; margin-block: 16px; }
  .question-preview > p:not(.quote):not(.eyebrow) { font-size: .93rem; color: #e1e6d7; }
  .closing { border-top: 1px solid var(--line); display: flex; gap: 24px; align-items: center; padding-block: 28px; }
  .closing h2 { font-size: 1.9rem; margin-top: 7px; }
  .closing p:not(.eyebrow) { color: var(--muted); margin-top: 10px; }
  .closing .button { margin-left: auto; flex-shrink: 0; }
  .asterisk { font-size: 3.5rem; color: #98701e; line-height: 1; }
  .site-footer { background: #eaece0; padding-block: 22px; }
  .footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
  .footer-brand { font-family: Georgia, serif; font-size: 1.1rem; }
  .footer-note, .copyright { font-size: .75rem; color: #53604c; margin-top: 7px; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 12px 25px; font-size: .82rem; }
  .page-hero { padding-block: 32px; }
  .page-hero h1 { margin-block: 12px 16px; }
  .page-hero .lede { max-width: 660px; }
  .product-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: center; }
  .app-overview h1 { font-size: clamp(2.3rem, 5.4vw, 4.7rem); overflow-wrap: anywhere; }
  .product-hero .eyebrow { margin-top: 18px; }
  .dice-panel { background: #efeddf; border-radius: 50% 50% 12px 12px; text-align: center; padding: 28px 24px 22px; }
  .dice-panel img { width: 120px; height: 120px; margin-inline: auto; border-radius: 20px; mix-blend-mode: multiply; transform: rotate(-8deg); }
  .dice-label { display: block; font-size: 2.6rem; margin-top: 14px; line-height: 1.2; }
  .dice-panel p { color: var(--muted); font-size: .9rem; margin-top: 7px; }
  .detail-row { display: grid; grid-template-columns: 1fr 1.45fr; gap: 40px; border-top: 1px solid var(--line); padding-block: 32px; }
  .detail-row h2 { margin-top: 8px; }
  .large-copy { font-family: Georgia, serif; font-size: 1.5rem; line-height: 1.4; }
  .detail-row > div > p:not(.large-copy) { color: var(--muted); }
  .plugin-section { background: var(--light); border-block: 1px solid var(--line); padding-block: 32px; }
  .plugin-section .section-heading { max-width: 650px; }
  .plugin-demo { margin: 36px 0; max-width: 900px; }
  .plugin-demo > p { margin-block: 12px 20px; color: var(--muted); }
  .plugin-demo video { display: block; width: 100%; height: auto; background: #111; border: 1px solid var(--line); border-radius: 8px; }
  .questions { margin-top: 24px; }
  .questions > .muted { margin-top: 10px; font-size: .9rem; }
  .question-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-block: 16px 0; }
  .question-list li { border-top: 1px solid #c7cdb8; padding-block: 16px; display: flex; gap: 16px; }
  .question-list li > span { font-size: .75rem; color: var(--muted); margin-top: 3px; }
  .question-list strong { font-size: 1.04rem; font-weight: 600; }
  .question-list p { font-size: .9rem; color: var(--muted); margin-top: 8px; }
  .boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 12px; border-top: 1px solid #c7cdb8; padding-top: 24px; }
  .boundary-grid h3 { margin-block: 10px 12px; }
  .boundary-grid p:not(.eyebrow) { font-size: .93rem; color: #485741; }
  .faq { display: grid; grid-template-columns: 1fr 1.45fr; gap: 40px; padding-block: 32px; }
  .faq h2 { margin-top: 8px; }
  .compact-hero { max-width: 1180px; }
  .compact-hero h1 { font-size: clamp(3rem, 5.5vw, 4.7rem); }
  .compact-hero > p:last-child { margin-top: 12px; }
  .support-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-bottom: 32px; }
  .support-card { border: 1px solid var(--line); border-radius: 8px; padding: 24px; background: var(--cream); }
  .primary-support { background: var(--light); }
  .support-card h2 { margin-block: 12px; font-size: 2.2rem; }
  .support-card .button { margin-top: 16px; }
  .support-card .small { margin-top: 16px; color: var(--muted); }
  .email-link { display: inline-block; margin-top: 8px; font-size: clamp(.95rem, 1.6vw, 1.16rem); font-weight: 600; overflow-wrap: anywhere; }
  .policy { max-width: 760px; padding-block: 32px 40px; }
  .legal-directory { padding-bottom: 32px; }
  .legal-directory .app-card h2 { font-size: 1.8rem; }
  .app-legal-links { flex-wrap: wrap; gap: 12px 25px; padding-block: 10px; border-bottom: 1px solid var(--line); }
  .policy h1 { font-size: clamp(2.7rem, 5vw, 4rem); margin-block: 10px 16px; }
  .policy h2 { font-size: 1.65rem; margin-block: 24px 10px; }
  .policy ul { padding-left: 22px; }
  .policy li { margin-block: 6px; }
  .policy table { width: 100%; border-collapse: collapse; font-size: .9rem; }
  .policy th, .policy td { border-bottom: 1px solid var(--line); text-align: left; padding: 12px 10px; vertical-align: top; }
}
@layer components {
  .skip-link { position: absolute; left: 10px; top: -80px; background: var(--ink); color: white; padding: 12px 20px; z-index: 10; }
  .skip-link:focus { top: 8px; }
  .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .eyebrow, .card-index { text-transform: uppercase; font-size: .66rem; letter-spacing: .18em; font-weight: 650; line-height: 1.6; }
  .eyebrow { display: flex; align-items: center; gap: 10px; }
  .tiny-line { display: inline-block; width: 24px; height: 1px; background: #927121; }
  .lede { font-size: 1.08rem; color: var(--muted); line-height: 1.6; }
  .button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; padding: 12px 21px; background: var(--ink); color: #fffdf6; text-decoration: none; border: 1px solid var(--ink); border-radius: 5px; font-size: .88rem; font-weight: 550; min-height: 47px; }
  .button:hover { background: #38533d; border-color: #38533d; }
  .button span { font-size: 1.15rem; }
  .button-outline { background: transparent; color: var(--ink); }
  .button-outline:hover { color: white; }
  .text-link { font-size: .9rem; font-weight: 600; text-decoration: underline; }
  .muted { color: var(--muted); }
  .status { display: inline-flex; gap: 9px; align-items: center; font-size: .7rem; letter-spacing: .03em; padding: 5px 12px; border: 1px solid #85977d; border-radius: 50px; align-self: flex-start; margin-top: 16px; color: #edf0dc; }
  .status > span { width: 6px; height: 6px; background: #e4bc6b; border-radius: 50%; }
  .back-link { font-size: .78rem; color: var(--muted); text-decoration: none; }
  .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
  .notice { border-left: 3px solid #946c1a; background: #f7edd4; padding: 14px 18px; color: #504323; font-size: .9rem; }
  .compact-hero .notice { max-width: 750px; margin-block: 20px; }
  .availability { padding-left: 15px; border-left: 2px solid #b7bea5; font-size: .87rem; }
  details { border-top: 1px solid var(--line); }
  details:last-child { border-bottom: 1px solid var(--line); }
  summary { cursor: pointer; min-height: 44px; padding: 12px 5px; font-size: .95rem; font-weight: 600; }
  details p { font-size: .9rem; color: var(--muted); padding: 0 5px 14px; }
  .small { font-size: .8rem; }
  .plain-list { padding-left: 20px; margin-block: 0 16px; }
  .plain-list li { padding-left: 5px; margin-bottom: 8px; }
  .copy-list { padding-left: 20px; margin-block: 10px 12px; }
  .copy-list li { padding-left: 3px; margin-block: 4px; }
  .app-card .copy-list, .boundary-grid .copy-list { color: var(--muted); font-size: .9rem; }
  .notice .copy-list { margin-block: 8px 0; }
  details .copy-list { font-size: .9rem; color: var(--muted); margin-top: 0; padding-bottom: 10px; }
  .draft-banner { padding: 12px 25px; background: #f6dfab; color: #483b1e; text-align: center; font-size: .85rem; border-bottom: 1px solid #d2b878; }
}
@layer responsive {
  @media (min-width: 1600px) { .hero { padding-block: 40px; } }
  @media (max-width: 1000px) {
    .wrap { width: calc(100% - 64px); }
    .hero { gap: 24px; padding-block: 28px; }
    .hero h1 { font-size: clamp(3rem, 6.3vw, 4.5rem); }
    .lede { font-size: 1rem; }
    .hero-copy .eyebrow { font-size: .59rem; letter-spacing: .13em; }
    .product-hero, .detail-row, .faq { gap: 28px; }
    .product-intro, .question-preview, .support-card { padding: 22px; }
    .closing { gap: 20px; }
    .closing h2 { font-size: 1.65rem; }
    .closing .asterisk { display: none; }
    .support-grid { grid-template-columns: 1fr 1fr; }
    .app-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 700px) {
    .wrap { width: calc(100% - 40px); }
    .site-header { gap: 12px; padding-block: 12px; flex-wrap: wrap; }
    .brand img { width: 38px; height: 38px; }
    .brand { gap: 8px; }
    .brand-name { font-size: .93rem; }
    .brand-name small { font-size: .55rem; }
    nav { gap: 17px; }
    nav a { font-size: .8rem; min-height: 36px; display: inline-flex; align-items: center; }
    nav .nav-support { padding: 4px 10px; }
    nav .nav-home { display: none; }
    .hero { grid-template-columns: 1fr; padding-block: 24px; gap: 20px; }
    .hero h1 { font-size: clamp(3.3rem, 11vw, 4.8rem); }
    .hero-copy .eyebrow { margin-bottom: 12px; font-size: .64rem; }
    .hero-copy .lede { margin-top: 12px; max-width: 470px; }
    .desktop-break { display: none; }
    .hero-copy .button { margin-top: 16px; }
    .hero-note { margin-top: 10px; }
    .lodge { width: min(65%, 240px); margin-inline: auto; padding: 0; }
    .lodge figcaption { bottom: 0; }
    .app-section { padding-block: 24px; }
    .portfolio { padding-block: 24px; }
    .app-grid { grid-template-columns: 1fr; gap: 12px; }
    .app-card { padding: 18px; }
    .product-feature, .product-hero, .detail-row, .faq, .support-grid, .boundary-grid, .question-list { grid-template-columns: 1fr; }
    .product-feature { border-radius: 7px; }
    .product-intro, .question-preview { padding: 20px; }
    .quote { font-size: 2rem; }
    .closing { flex-direction: column; align-items: flex-start; padding-block: 24px; gap: 16px; }
    .closing .button { margin-left: 0; }
    .footer-inner { flex-direction: column; gap: 16px; }
    .footer-links { gap: 14px 22px; }
    .footer-links a { padding-block: 5px; }
    .site-footer { padding-block: 20px; }
    .page-hero { padding-block: 24px; }
    .page-hero h1 { font-size: clamp(2.8rem, 10vw, 4rem); }
    .product-hero { gap: 20px; }
    .product-hero .eyebrow { margin-top: 16px; font-size: .6rem; }
    .dice-panel { width: min(100%, 330px); margin-inline: auto; padding: 20px; display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 8px 16px; border-radius: 12px; }
    .dice-panel img { width: 64px; height: 64px; margin: 0; }
    .dice-label { font-size: 1.5rem; margin-top: 0; overflow-wrap: anywhere; }
    .dice-panel p { grid-column: 1 / -1; margin-top: 0; }
    .detail-row { gap: 16px; padding-block: 24px; }
    .plugin-section { padding-block: 24px; }
    .question-list { gap: 0; }
    .question-list li { gap: 12px; padding-block: 14px; }
    .boundary-grid { gap: 20px; padding-top: 20px; }
    .boundary-grid h3 { font-size: 1.7rem; margin-bottom: 10px; }
    .faq { gap: 16px; padding-block: 24px; }
    .support-grid { gap: 12px; margin-bottom: 24px; }
    .support-card { padding: 20px; }
    .support-card h2 { margin-top: 12px; }
    .email-link { font-size: 1rem; }
    .policy { padding-block: 24px 32px; }
    .policy th, .policy td { padding-inline: 5px; }
  }
  @media (max-width: 370px) { .site-header { gap: 8px; } .brand-name { font-size: .86rem; } nav { gap: 12px; } .wrap { width: calc(100% - 32px); } .hero h1 { font-size: 3.05rem; } }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  @media print { .site-header, .site-footer, .skip-link, .draft-banner { display: none; } body { background: white; color: black; } .wrap { width: 100%; } details > * { display: block; } }
}
