/* Island Thyme wholesale site. Text-first. Same type and palette as the printed collateral:
   EB Garamond for headings and ledes, Instrument Sans for everything else, brand green. */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --paper: #fefefb;
  --surface: #ffffff;
  --ink: #2b2f2b;
  --muted: #6a726a;
  --line: #e1e1db;
  --line-strong: #c9d0c8;
  --green: #5b7c5c;
  --green-deep: #3f5c40;
  --green-soft: #e8efe8;
  --lav: #5a5691;
  --display: "EB Garamond", Georgia, "Times New Roman", serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --wrap: 62rem;
  --measure: 68ch;
}

html { scroll-padding-top: 4rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
a { color: var(--lav); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-deep); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

/* Header: logo + wordmark on a shared baseline, one hamburger menu at every width */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; padding-top: .45rem; padding-bottom: .45rem; }
.brand { display: inline-flex; align-items: flex-end; gap: .55rem; text-decoration: none; color: var(--ink); line-height: 1; align-self: center; }
.brand img { height: 30px; width: auto; display: block; }
.brand .wordmark { font-family: var(--display); font-size: 1.35rem; color: var(--green-deep); padding-bottom: 7px; letter-spacing: .01em; }
.menu { position: relative; display: flex; align-items: center; align-self: stretch; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; border-radius: 4px; color: var(--ink); font-size: .95rem; user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: var(--green-soft); color: var(--green-deep); }
.burger { display: inline-flex; flex-direction: column; justify-content: space-between; width: 20px; height: 14px; }
.burger i { display: block; height: 2px; background: currentColor; border-radius: 1px; }
.panel { position: absolute; right: 0; top: calc(100% + .6rem); width: min(22rem, calc(100vw - 2.5rem)); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.10); padding: .5rem 0 .4rem; max-height: calc(100vh - 5rem); overflow: auto; }
.panel a { display: block; padding: .55rem 1.1rem; color: var(--ink); text-decoration: none; font-size: 1rem; }
.panel a:hover { background: var(--green-soft); color: var(--green-deep); }
.panel a[aria-current="page"] { color: var(--green-deep); font-weight: 600; box-shadow: inset 3px 0 0 var(--green); }
.panel a.top { font-family: var(--display); font-size: 1.15rem; }
.panel .group { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .35rem; }
.panel .group-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: .45rem 1.1rem .15rem; }
.panel .group.contact a { font-size: .9rem; color: var(--lav); }

/* Type */
main { padding: 2.2rem 1.25rem 4rem; }
h1, h2, h3, .lede { font-family: var(--display); font-weight: 500; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.08; margin: .2rem 0 .8rem; }
h2 { font-size: 1.55rem; line-height: 1.2; margin: 2.2rem 0 .6rem; color: var(--green-deep); }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .4rem; }
p, ul, ol, table, blockquote { max-width: var(--measure); }
p { margin: 0 0 1rem; }
.lede { font-size: 1.25rem; line-height: 1.4; margin-bottom: 1.4rem; }
.eyebrow { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green); font-weight: 600; margin: 0 0 .4rem; }
ul, ol { padding-left: 1.3rem; margin: 0 0 1rem; }
li { margin-bottom: .35rem; }
li b, p b { font-weight: 600; }
blockquote { margin: 1.2rem 0; padding: .9rem 1.1rem; background: var(--green-soft); border-left: 3px solid var(--green); border-radius: 0 4px 4px 0; font-family: var(--display); font-size: 1.15rem; line-height: 1.4; }
blockquote p { margin: 0; }
blockquote cite { display: block; font-family: var(--body); font-style: normal; font-size: .85rem; color: var(--muted); margin-top: .4rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.small { font-size: .88rem; color: var(--muted); }
code, kbd { font-family: var(--mono); font-size: .9em; }

/* Tables (specs, handoff lists) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); margin: 1rem 0 1.4rem; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; max-width: none; }
th { text-align: left; font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: .6rem .8rem; border-bottom: 1px solid var(--ink); background: var(--green-soft); }
td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.mono, th.mono { font-variant-numeric: tabular-nums; white-space: nowrap; font-family: var(--mono); font-size: .88rem; }
tr.grp td { background: var(--green-soft); color: var(--green-deep); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
tr.grp td span { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
details.line { margin: 0 0 .6rem; }
details.line > summary { cursor: pointer; list-style: none; font-family: var(--display); font-size: 1.3rem; color: var(--green-deep); padding: .5rem 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: .5rem; }
details.line > summary::-webkit-details-marker { display: none; }
details.line > summary::before { content: "▸"; font-size: .8em; color: var(--muted); transition: transform .15s; }
details.line[open] > summary::before { transform: rotate(90deg); }
details.line > .cards { margin-top: .4rem; }
.card details.inci { margin-top: .35rem; }
.card details.inci summary { cursor: pointer; font-size: .82rem; color: var(--lav); }
.card details.inci p { margin: .3rem 0 0; font-size: .86rem; color: var(--muted); line-height: 1.45; }
tr.inci td { padding: 0; border-bottom: 1px solid var(--line); background: var(--paper); }
/* The details block sticks to the visible left edge of a horizontally scrolling table and never grows wider than the screen, so an ingredient list reads without sideways scrolling. */
tr.inci details { position: sticky; left: 0; box-sizing: border-box; width: min(100%, calc(100vw - 3.4rem)); max-width: 46rem; padding: 0 .8rem .5rem; }
tr.inci details summary { cursor: pointer; font-size: .8rem; color: var(--lav); padding-top: .2rem; }
tr.inci details p { margin: .35rem 0 0; font-size: .86rem; color: var(--muted); line-height: 1.45; max-width: none; }

/* Product cards */
.cards { display: grid; gap: .8rem; margin: 1rem 0 1.6rem; }
.card { display: grid; grid-template-columns: 5rem 1fr; gap: .9rem; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: .8rem .95rem; max-width: 46rem; }
.card img { width: 5rem; height: 5rem; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); background: #fff; }
.card h3 { margin: 0 0 .15rem; font-size: 1.15rem; }
.card .for { font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--green); font-weight: 600; margin-bottom: .2rem; }
.card .say { font-family: var(--display); font-size: 1.05rem; font-style: italic; color: var(--green-deep); margin: 0 0 .35rem; }
.card .kv { font-size: .9rem; color: var(--muted); margin: 0 0 .2rem; }
.card .kv b { color: var(--ink); font-weight: 600; }

/* Callouts and boxes */
.box { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: .9rem 1.1rem; margin: 1rem 0 1.4rem; max-width: 46rem; }
.box h3 { margin-top: 0; color: var(--green-deep); }
.terms { background: var(--green-deep); color: #fff; border-radius: 4px; padding: 1rem 1.2rem; margin: 1rem 0 1.6rem; max-width: 46rem; }
.terms b { font-family: var(--display); font-weight: 500; font-size: 1.25rem; display: block; margin-bottom: .2rem; }
.terms a { color: #fff; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: .9rem; margin: 1rem 0 1.6rem; }
.tile { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: .9rem 1.1rem; }
.tile h3 { margin: 0 0 .3rem; }
.tile p { margin: 0; font-size: .95rem; color: var(--muted); }
.tile a { text-decoration: none; }
/* collection tiles with a small photo: below the text on desktop, to the right on phones */
.tile.pic { display: flex; flex-direction: column; gap: .75rem; }
.tile.pic .txt { flex: 1 1 auto; }
.tile.pic .thumb { margin-top: auto; }
.tile.pic .thumb { display: block; line-height: 0; }
.tile.pic img { height: 9rem; width: auto; max-width: 100%; object-fit: contain; border-radius: 3px; background: #fff; }
.videos li { margin-bottom: .6rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 0 2.4rem; color: var(--muted); font-size: .92rem; background: var(--surface); }
.site-footer p { margin: 0 0 .35rem; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  main { padding: 1.4rem 1rem 3rem; }
  .wrap { padding-left: 1rem; padding-right: 1rem; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.35rem; margin-top: 1.8rem; }
  .lede { font-size: 1.1rem; }
  .brand img { height: 26px; }
  .brand .wordmark { font-size: 1.2rem; padding-bottom: 6px; }
  .menu-label { display: none; }
  .menu { position: static; display: flex; }
  .panel { position: fixed; left: .75rem; right: .75rem; top: 3.6rem; width: auto; max-height: calc(100vh - 4.5rem); }
  .card { grid-template-columns: 3.6rem 1fr; gap: .7rem; padding: .7rem .8rem; }
  .card img { width: 3.6rem; height: 3.6rem; }
  .card .say { font-size: 1rem; }
  .grid2 { grid-template-columns: 1fr; }
  .tile.pic { flex-direction: row; align-items: center; justify-content: space-between; gap: .9rem; }
  .tile.pic .txt { flex: 1 1 auto; min-width: 0; }
  .tile.pic .thumb { flex: 0 0 auto; }
  .tile.pic img { height: 5.25rem; width: 5.25rem; object-fit: cover; }
  table { font-size: .9rem; }
  th, td { padding: .5rem .6rem; }
  .terms { padding: .9rem 1rem; }
  blockquote { font-size: 1.05rem; padding: .8rem .9rem; }
}
@media print {
  .site-header, .site-footer { display: none; }
  main { padding: 0; }
  a { color: inherit; text-decoration: none; }
}
