/* Littlesupper: a dinner table at dusk, and the same table by candlelight at night in dark mode (the app's
   "Candlelit" look: cream and plum by day, aubergine and candle gold at night). The page layout is the shared
   Little Lamp Labs one (home/site.css, the same file as littlelamplabs.com's); this file brings the colours, the
   type, the scene and the support box. No scripts (see _headers), so everything that moves is CSS. */
@font-face { font-family: "Instrument Serif"; src: url("/home/InstrumentSerif-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/home/InstrumentSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }

.site { --bg: #FBF7F2; --ink: #2A1E2C; --muted: #64566A; --card: #FFFFFF; --line: #E4D9DF;
  --hero-bg: #F6E6D8; --hero-ink: #3E1A38; --hero-sub: #5E3F58; --button: #6B2F5E; --accent: #6B2F5E;
  --soft: #F1E9EA; }
@media (prefers-color-scheme: dark) {
  .site { --bg: #1A1220; --ink: #F3EAF0; --muted: #BBA9B8; --card: #251A2D; --line: #33263C;
    --hero-bg: #231829; --hero-ink: #F6EBDD; --hero-sub: #D9C8D6; --button: #E3B35C; --accent: #E3B35C;
    --soft: #251A2D; }
  .button-main { color: #1A1220 !important; }
  .button-quiet { background: rgba(255, 255, 255, 0.1); }
}

/* Instrument Serif for headings, as in the app. It has one weight: never fake bold on it. */
.site .hero h1, .site .tiles .tile h2, .site .about h2, .site .support h2, .site .doc h1, .site .doc h2 {
  font-family: "Instrument Serif", "New York", "Iowan Old Style", Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
.hero h1 { font-size: clamp(48px, 7vw, 88px); line-height: 1; }
.site .tiles .tile h2 { font-size: 26px; }
.site .doc h2 { font-size: 28px; }
.site .hero h1 em, .site .doc h1 em { font-style: italic; color: var(--accent); }

/* Phones: the table sits under the words, centred on the candles. */
@media (max-width: 760px) { .art { height: 460px; margin-top: 12px; } }

/* "Like what we're making?" */
.support { text-align: center; padding: 40px 24px; margin-bottom: 48px; border-radius: 32px; background: var(--soft); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.support h2 { font-size: clamp(30px, 4.4vw, 42px); }
.support p { max-width: 32em; color: var(--muted); }

/* The privacy and help pages: the bar on a short band of wall, then plain reading. */
.hero-slim { min-height: 0 !important; }
.doc { max-width: 720px; margin: 0 auto; padding: 40px 0 56px; }
.doc h1 { font-size: clamp(40px, 6vw, 56px); margin-bottom: 8px; }
.doc .meta { color: var(--muted); margin-bottom: 24px; }
.doc h2 { margin: 32px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.2em; margin: 12px 0 0; }
.doc li { margin: 8px 0; }
.doc .actions { margin-top: 20px; }

/* Day and night: some things only come out at one time of day. */
.night { display: none; }
@media (prefers-color-scheme: dark) { .day { display: none; } .night { display: inline; } }

/* The room at dusk */
.wall { fill: #F6E6D8; }
.wainscot { fill: #EBD3C6; }
.panel-lines { fill: none; stroke: #DFC3B5; stroke-width: 3; }
.rail { fill: #DDBFAF; }
.floor { fill: #B98A68; }
.floor-lines { stroke: #A67959; stroke-width: 3; }
.frame { fill: #FFF8EF; }
.glass { fill: url(#sky-day); }
.sun { fill: #FFE2A0; } .sun-glow { fill: #FFD98A; opacity: 0.45; }
.hill-far { fill: #A0607A; opacity: 0.75; } .hill-near { fill: #6B3A5C; opacity: 0.85; }
.sill { fill: #FFF8EF; }
.curtain { fill: #8A4579; } .rod { fill: #B8894A; }
.shelf { fill: #9A6A4C; } .bracket { fill: none; stroke: #9A6A4C; stroke-width: 6; stroke-linejoin: round; }
.plate { fill: #FFFDF9; } .plate-in { fill: #F1E6E2; }
.today-ring { fill: none; stroke: #D9A23F; stroke-width: 4; }
.soup { fill: #E08A4A; } .herb { fill: #5E8A3A; }
.noodle { fill: none; stroke: #E5BE5C; stroke-width: 3; stroke-linecap: round; } .sauce { fill: #B9452F; }
.taco { fill: #E9B44C; } .lettuce { stroke: #6FA04A; stroke-width: 3; stroke-linecap: round; }
.leaf { fill: #6FA04A; } .leaf-2 { fill: #93BE5E; } .tomato { fill: #C9452F; }
.rice { fill: #FFFFFF; } .curry { fill: #D08A2E; }
.crust { fill: #D39A52; } .cheese { fill: #F1C85A; } .pie { fill: #B0465E; }
.chair rect { fill: #8B5A3E; }
.cloth { fill: #FFFBF5; } .runner { fill: #8A4579; } .cloth-front { fill: #F7EEE4; }
.cloth-hem { stroke: #E6D6C8; stroke-width: 4; }
.leg { fill: #7A4E36; }
.shadow { fill: #6E4A33; opacity: 0.22; }
.board { fill: #B98252; } .bread { fill: #D9A15E; } .bread-cut { stroke: #B57A3C; stroke-width: 4; stroke-linecap: round; }
.food-a { fill: #C9703E; } .food-b { fill: #7FAE58; }
.glass-cup { fill: #FFFFFF; opacity: 0.7; } .wine { fill: #7A2350; opacity: 0.85; }
.candlestick { fill: #C9973E; }
.candle { fill: #FFFAF2; } .wick { stroke: #3A2A2A; stroke-width: 3; stroke-linecap: round; }
.flame { fill: #F3B243; } .flame-core { fill: #FFF1C9; }
.candle-glow { fill: url(#warm); opacity: 0.35; }
.pot { fill: #6B2F5E; } .pot-rim { fill: #8A4579; } .stew { fill: #C46A33; }
.pot-handle { stroke: #6B2F5E; stroke-width: 10; stroke-linecap: round; }
.ladle { stroke: #C9973E; stroke-width: 7; stroke-linecap: round; } .ladle-end { fill: #C9973E; }
.steam path { fill: none; stroke: #FFFFFF; stroke-width: 6; stroke-linecap: round; opacity: 0; }
.fork { stroke: #B8A9A0; stroke-width: 5; stroke-linecap: round; }

/* The same table by candlelight */
@media (prefers-color-scheme: dark) {
  .wall { fill: #231829; }
  .wainscot { fill: #1D1322; }
  .panel-lines { stroke: #2A1D31; }
  .rail { fill: #2E2135; }
  .floor { fill: #1A1016; } .floor-lines { stroke: #23161D; }
  .frame, .sill { fill: #3A2B40; }
  .glass { fill: url(#sky-night); }
  .moon { fill: #F3EBD3; } .moon-bite { fill: #1E1530; }
  .star { fill: #EDE4D0; }
  .hill-far { fill: #2A1C3A; opacity: 1; } .hill-near { fill: #1A1226; opacity: 1; }
  .curtain { fill: #4A2142; } .rod { fill: #6E5530; }
  .shelf { fill: #3E2A2A; } .bracket { stroke: #3E2A2A; }
  .plate { fill: #D8CCC6; } .plate-in { fill: #C2B4B0; }
  .today-ring { stroke: #E3B35C; }
  .chair rect { fill: #3A2620; }
  .cloth { fill: #D9CBC0; } .cloth-front { fill: #B9A99E; } .cloth-hem { stroke: #A39488; }
  .runner { fill: #5A2450; }
  .leg { fill: #2E1E18; }
  .shadow { fill: #000000; opacity: 0.4; }
  .board { fill: #6E4A30; } .bread { fill: #A8763E; } .bread-cut { stroke: #7E5428; }
  .glass-cup { opacity: 0.35; }
  .candle { fill: #F4E6D2; }
  .candle-glow { opacity: 0.9; }
  .pot { fill: #5A2450; } .pot-rim { fill: #74376A; }
  .steam path { stroke: #E9DCC8; }
}

/* Motion. Small and slow: the candles flicker, steam rises from the pot, the stars twinkle, the sun sinks. */
.flame-wrap { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 2.6s ease-in-out infinite; }
.flame-wrap.f2 { animation-duration: 3.1s; animation-delay: -1.2s; }
@keyframes flicker { 0%, 100% { transform: scale(1, 1) skewX(0deg); } 20% { transform: scale(0.96, 1.06) skewX(-3deg); } 45% { transform: scale(1.03, 0.95) skewX(2deg); } 70% { transform: scale(0.98, 1.04) skewX(-1deg); } }
.candle-glow { animation: glow 3.4s ease-in-out infinite; }
.candle-glow.g2 { animation-delay: -1.6s; }
@keyframes glow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.candle-glow { transform-box: fill-box; transform-origin: 50% 50%; }
.steam path { animation: rise 5s ease-in-out infinite; }
.steam .s2 { animation-delay: -1.7s; } .steam .s3 { animation-delay: -3.3s; }
@keyframes rise { 0% { transform: translateY(18px); opacity: 0; } 30% { opacity: 0.55; } 100% { transform: translateY(-34px); opacity: 0; } }
.star { animation: twinkle 6s ease-in-out infinite; }
.star.s1 { animation-delay: -2s; animation-duration: 7s; } .star.s2 { animation-delay: -4s; animation-duration: 9s; }
@keyframes twinkle { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.35; } }
.sun-wrap { animation: sunset 40s ease-in-out infinite alternate; }
@keyframes sunset { from { transform: translateY(-14px); } to { transform: translateY(18px); } }

/* Reduce Motion: the flames and steam hold still; the stars and the sun still drift, slower. */
@media (prefers-reduced-motion: reduce) {
  .flame-wrap, .candle-glow { animation: none; }
  .steam path { animation: none; opacity: 0.35; }
  .sun-wrap { animation-duration: 90s; }
}
