/* Lamplight, tutors: the site's look since October 17, 2026 (the founder's pick). Every rule is scoped to
   html[data-look="lamplight"], which each page sets on its <html> tag; without it the page falls back to styles.css. */

/* Our tutors: the home page's lit glass name card, at a size for a whole list (the founder found big tiles
   too big, October 17). Warm frosted glass under a lamp, a parchment mount for the photo or initials, the
   subjects in lamp amber. One tutor: one card at a sensible width, its lamp right above it. The cards are
   not links, so nothing on them lifts or presses. Shared parts (header, page head, closing row, footer)
   are in site.css. */

/* The list and its lamp: a cone of light from above, landing on the cards and glowing through the glass
   (wider than the list, so the page clips it at its sides: never a sideways scroll) */
html[data-look="lamplight"] main#main{overflow-x:clip;}
html[data-look="lamplight"] .directory-grid{position:relative; isolation:isolate; gap:14px; margin-top:clamp(36px, 4.4vw, 56px);}
html[data-look="lamplight"] .directory-grid::before{content:""; position:absolute; z-index:-1; left:50%; top:-120px; width:min(130%, 1180px); height:calc(100% + 120px);
  transform:translateX(-50%); pointer-events:none;
  background:conic-gradient(from 142deg at 50% 0%, rgba(255,200,135,0) 0deg, rgba(255,200,135,.04) 12deg, rgba(255,208,150,.11) 28deg, rgba(255,218,164,.14) 38deg, rgba(255,208,150,.11) 48deg, rgba(255,200,135,.04) 64deg, rgba(255,200,135,0) 76deg, rgba(255,200,135,0) 360deg);
  -webkit-mask-image:linear-gradient(180deg, transparent 0, #000 26%, #000 64%, transparent 100%); mask-image:linear-gradient(180deg, transparent 0, #000 26%, #000 64%, transparent 100%);}
/* one tutor: a narrower, brighter cone over the one card */
html[data-look="lamplight"] .directory-grid.single{grid-template-columns:minmax(0, 760px);}
html[data-look="lamplight"] .directory-grid.single::before{left:min(380px, 50%); width:min(150%, 860px);
  background:conic-gradient(from 146deg at 50% 0%, rgba(255,200,135,0) 0deg, rgba(255,200,135,.06) 9deg, rgba(255,208,150,.16) 22deg, rgba(255,218,164,.2) 34deg, rgba(255,208,150,.16) 46deg, rgba(255,200,135,.06) 59deg, rgba(255,200,135,0) 68deg, rgba(255,200,135,0) 360deg);}
html[data-look="lamplight"] .directory-grid:has(> :is(.loading, .empty))::before{opacity:.5;}
/* "coming soon" or "can't load" alone: a narrow box on the left, so the centred light would fall on nothing */
html[data-look="lamplight"] .directory-grid:has(> :is(.empty, .load-failed))::before{display:none;}

/* The name card: warm glass, a lit top edge, an amber edge light, the lamp's warmth on the page under it */
html[data-look="lamplight"] .tutor-card{position:relative; isolation:isolate; overflow:hidden; gap:18px; padding:20px 22px 22px;
  border:1px solid transparent; border-radius:20px;
  background:linear-gradient(175deg, #432420 0%, #31171A 46%, #261012 100%);   /* solid, where glass isn't supported */
  box-shadow:
    inset 0 1px 0 rgba(255,238,214,.44),          /* the lit top edge of the glass */
    inset 0 0 0 1px rgba(255,206,150,.14),        /* its rim */
    inset 0 -16px 26px -20px rgba(10,2,3,.6),     /* its thickness, darker toward the foot */
    0 0 0 1px rgba(244,182,110,.13),              /* amber edge light */
    0 2px 3px rgba(10,2,3,.55), 0 14px 26px -12px rgba(10,2,3,.85), 0 36px 64px -32px rgba(10,2,3,.9),
    0 24px 60px -32px rgba(244,150,70,.32);       /* the lamp's warmth on the page under it */}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)){
  html[data-look="lamplight"] .tutor-card{background:linear-gradient(175deg, rgba(255,216,178,.15) 0%, rgba(255,198,152,.07) 46%, rgba(255,186,140,.045) 100%), rgba(38,15,14,.62);
    -webkit-backdrop-filter:blur(14px) saturate(140%); backdrop-filter:blur(14px) saturate(140%);}
}
/* light from above on the glass, and a soft sheen across its frost */
html[data-look="lamplight"] .tutor-card::before{content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(90% 64% at 50% -14%, rgba(255,214,160,.2), rgba(255,200,140,.05) 54%, transparent 78%),
    linear-gradient(118deg, rgba(255,240,222,.07) 0%, rgba(255,240,222,0) 34%);}

/* The parchment mount (site.css draws it): small in a list */
html[data-look="lamplight"] .tc-head{gap:16px;}
html[data-look="lamplight"] .tc-fi{color:var(--ll-brass); border-color:rgba(244,182,110,.45);}   /* the French Immersion tag, a brass label */
html[data-look="lamplight"] .tc-tile{width:56px; height:56px; padding:4px; font-size:1.3125rem; border-radius:14px;}
html[data-look="lamplight"] .tc-tile img{border-radius:10px;}
/* the name in the book face, what they teach in the lamp's amber */
html[data-look="lamplight"] .tc-name{font-family:var(--ll-serif); font-weight:400; font-size:clamp(1.4375rem, 2.1vw, 1.6875rem); line-height:1.12; letter-spacing:-0.004em; color:var(--ll-paper);}
html[data-look="lamplight"] .tc-bio{color:var(--ll-ink-2);}
html[data-look="lamplight"] .tc-rows{border-top-color:transparent; background:linear-gradient(90deg, rgba(244,182,110,.4), rgba(244,182,110,.16) 70%, rgba(244,182,110,.06)) top left / 100% 1px no-repeat;}
html[data-look="lamplight"] .tc-rows > div{border-bottom-color:var(--ll-line);}
html[data-look="lamplight"] .tc-rows dt{color:var(--ll-amber-2);}
html[data-look="lamplight"] .tc-rows dd{color:var(--ll-ink-2);}

/* One tutor: a bigger card at a sensible width: the mount on the left, and beside it the name, the bio and
   what they teach, one under the other (like the home page's card), so no half of the card stands empty */
@media (min-width:820px){
  html[data-look="lamplight"] .directory-grid.single .tutor-card{grid-template-columns:auto minmax(0, 1fr); grid-template-rows:auto auto 1fr;
    column-gap:clamp(22px, 2.6vw, 30px); row-gap:12px; align-items:start; padding:clamp(26px, 2.8vw, 34px); border-radius:24px;}
  html[data-look="lamplight"] .directory-grid.single .tc-head{display:contents;}
  html[data-look="lamplight"] .directory-grid.single .tc-tile{grid-column:1; grid-row:1 / span 3;}
  html[data-look="lamplight"] .directory-grid.single .tc-name{grid-column:2; grid-row:1; margin-top:6px;}
  html[data-look="lamplight"] .directory-grid.single .tc-bio{grid-column:2; grid-row:2;}
  html[data-look="lamplight"] .directory-grid.single .tc-rows{grid-column:2; grid-row:3; margin-top:4px;}
  html[data-look="lamplight"] .directory-grid.single .tc-tile{width:84px; height:84px; padding:6px; font-size:1.9375rem; border-radius:18px;}
  html[data-look="lamplight"] .directory-grid.single .tc-tile img{border-radius:13px;}
  html[data-look="lamplight"] .directory-grid.single .tc-name{font-weight:400; font-size:clamp(1.875rem, 3vw, 2.375rem); line-height:1.06; letter-spacing:-0.004em;}
}
@media (max-width:520px){
  html[data-look="lamplight"] .tutor-card{gap:16px; padding:16px 18px 18px; border-radius:18px;}
  html[data-look="lamplight"] .tc-head{gap:14px;}
  html[data-look="lamplight"] :is(.tc-tile, .directory-grid.single .tc-tile){width:52px; height:52px; font-size:1.25rem; border-radius:13px;}
  html[data-look="lamplight"] .directory-grid.single .tc-tile{width:60px; height:60px; font-size:1.4375rem; border-radius:15px;}
  html[data-look="lamplight"] .tc-name{font-size:1.375rem;}
  html[data-look="lamplight"] .directory-grid.single .tc-name{font-size:1.5625rem;}
  html[data-look="lamplight"] .directory-grid::before{top:-90px; height:calc(100% + 90px);}
}
@media (max-width:360px){
  html[data-look="lamplight"] .tutor-card{padding:16px 15px 16px;}
}

/* Loading, none yet and can't load: a quiet panel in the shade, under the same lamp */
html[data-look="lamplight"] .directory-grid > .empty,
html[data-look="lamplight"] .directory-grid > .loading.load-failed{padding:24px; border:0; border-radius:18px; background:#1E0B0D; box-shadow:inset 0 0 0 1px rgba(244,182,110,.12); color:var(--ll-ink-2);}
html[data-look="lamplight"] .directory-grid > .loading{padding-top:4px;}
html[data-look="lamplight"] .directory-grid > .loading.load-failed{justify-self:start; width:min(100%, 560px);}

/* The closing row comes a little closer to the list */
html[data-look="lamplight"] main > .cta-row.sec{padding-top:clamp(56px, 7vw, 96px);}

/* Until October 30, 2026 the cards rose into the light whenever they loaded. Now, after a tap on this site led
   here, the page's own arrival lights their top edges (styles.css, "Page arrivals"); otherwise they are simply there. */

/* Windows high contrast: no lamp, no glass, plain edges */
@media (forced-colors: active){
  html[data-look="lamplight"] .directory-grid::before, html[data-look="lamplight"] .tutor-card::before{display:none;}
  html[data-look="lamplight"] .tutor-card{-webkit-backdrop-filter:none; backdrop-filter:none; border:1px solid CanvasText;}
  html[data-look="lamplight"] .tc-rows{border-top:1px solid CanvasText;}
}
