/* D&T's look, over the base stylesheet. Everything here hangs from .dt, which
 * only D&T's own shell carries, and dresses the ids and classes the base emits.
 * The gold of lettering is darkened from the design's so it reads at WCAG AA;
 * the design's own gold is kept for rules and fills. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/cormorant-garamond-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/cormorant-garamond-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url("fonts/cormorant-garamond-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url("fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: "Italiana"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/italiana-normal-latin.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("fonts/jost-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("fonts/jost-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F; }

html.dt {
  --ink: #0e0d0c; --surface: #fcfbf9; --raised: #f1efeb; --muted: #57534d; --line: #dcd9d3;
  --accent: #0e0d0c; --on-accent: #ffffff;
  --gold: #b8976a; --gold-text: #7a5c30;
  --font: Jost, system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --radius: 0;
  --gutter: clamp(20px, 4vw, 56px);
}
.dt body { font-weight: 350; font-size: 1rem; }
.dt h1, .dt h2, .dt h3 { font-family: var(--serif); font-weight: 300; line-height: 1.08; letter-spacing: 0; }
.dt h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.dt h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.dt .eyebrow { font: 500 .72rem/1.4 var(--font); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-text); }
.dt .caps { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.dt .link { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-block: 12px 4px; }
.dt .link:hover { color: var(--gold-text); }
.dt-skip { position: absolute; left: -999px; }
.dt-skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 12px; z-index: 9; }

/* the colours D&T cuts in */
.dt-c-navy { --swatch: #1f2a44; }
.dt-c-white { --swatch: #f4f4f4; }
.dt-c-olive { --swatch: #5b6b3a; }
.dt-c-black { --swatch: #141414; }
.dt-c-wine { --swatch: #6b1f2a; }
.dt-c-sand { --swatch: #d8c7a8; }
.dt-c-sage { --swatch: #9aa88f; }
.dt-c-blush { --swatch: #e8c4c0; }
.dt-c-ivory { --swatch: #f3ede2; }
.dt-c-grey { --swatch: #8a8a8a; }
.dt-c-sky { --swatch: #a9c4d9; }
.dt-c-rust { --swatch: #a0522d; }
.dt-c-other { --swatch: #c9c5bd; }

/* header */
.dt #chrome { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px 24px; padding: 10px var(--gutter); position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); align-items: center; }
.dt #chrome a { font-size: .9rem; }
.dt-nav { display: flex; gap: 26px; }
.dt-own { display: flex; gap: 18px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.dt #home { margin: 0; }
.dt-logo { font: 400 1.9rem/1 Italiana, var(--serif); letter-spacing: .14em; white-space: nowrap; }
.dt-logo .amp { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: .8em; letter-spacing: 0; margin: 0 .08em; }
.dt #staff-bar { grid-column: 1 / -1; margin: 0 calc(-1 * var(--gutter)) -10px; padding-inline: var(--gutter); }
.dt-menu { display: none; }
.dt-menu > summary { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; font-size: .9rem; }
.dt-menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); padding: 24px var(--gutter) 32px; display: grid; gap: 6px; }
.dt #chrome .dt-menu nav a { color: #fff; font: 300 1.9rem/1.2 var(--serif); }

/* main */
.dt #main { max-width: 1280px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) 96px; gap: clamp(20px, 3vw, 36px); }
.dt-hero { margin: calc(-1 * clamp(28px, 5vw, 64px)) calc(50% - 50vw) 0; min-height: min(78vh, 720px); display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center; padding: 48px var(--gutter); color: #fff; background: radial-gradient(ellipse at 50% 40%, #3a342d 0, #191714 62%, #0e0d0c 100%); }
.dt-hero .eyebrow { color: #d9c19c; }
.dt-hero .dt-links { display: flex; gap: 36px; }
.dt-hero .link, .dt-hero .link:hover { color: #fff; }
.dt-statement { text-align: center; padding-block: clamp(48px, 8vw, 110px); display: grid; gap: 20px; justify-items: center; }
.dt-statement p:nth-of-type(2) { font: 300 clamp(1.5rem, 2.6vw, 2.3rem)/1.35 var(--serif); max-width: 46ch; text-wrap: balance; }
.dt-band { padding-bottom: clamp(32px, 5vw, 72px); }
.dt .rowhead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.dt #categories .dt-catlist { list-style: none; padding: 0; display: block; border-top: 1px solid var(--line); }
.dt #categories .dt-catlist a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 20px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-decoration: none; min-height: 0; }
.dt #categories .dt-catlist a:hover .t { color: var(--gold-text); }
.dt #categories .dt-catlist .n { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.dt #categories .dt-catlist .t { font: 300 clamp(1.5rem, 2.4vw, 2.2rem)/1 var(--serif); }

/* grid and card */
.dt .dt-grid, .dt #products.dt-grid, .dt #featured.dt-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 44%), 1fr)); gap: 48px 24px; }
.dt .dt-card { border: 0; padding: 0; background: none; box-shadow: none; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dt .dt-card .dt-ph { display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: var(--raised); }
.dt .dt-card .dt-ph { position: relative; }
.dt .dt-card .dt-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.dt .dt-card .dt-ph img.b { opacity: 0; }
.dt .dt-card .dt-ph:hover img.b { opacity: 1; }
.dt-gallery figure { margin: 0; }
.dt-gallery figcaption { font-size: .85rem; color: var(--muted); padding-top: 6px; }
.dt-plate { display: grid; place-items: center; width: 100%; height: 100%; min-height: 220px; background: linear-gradient(160deg, color-mix(in srgb, var(--swatch, #c9c5bd) 24%, #f1efeb), color-mix(in srgb, var(--swatch, #c9c5bd) 52%, #f1efeb)); }
.dt-plate span { font: 300 clamp(3rem, 7vw, 6rem)/1 var(--serif); color: rgb(14 13 12 / 45%); }
.dt .dt-card h3 { font-size: 1.35rem; margin-top: 10px; }
.dt .dt-card h3 a { font-family: var(--serif); font-weight: 300; }
.dt .dt-card .price { font-size: .95rem; }
.dt-dots { display: flex; gap: 6px; justify-content: center; }
.dt-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgb(14 13 12 / 30%); background: var(--swatch, #c9c5bd); display: inline-block; }

/* collection */
.dt-shop-head { text-align: center; display: grid; gap: 8px; }
.dt-count { font: italic 300 1.2rem/1.3 var(--serif); color: var(--muted); }
.dt #search { flex-direction: row; flex-wrap: wrap; align-items: end; gap: 12px; max-width: 560px; }
.dt #search label { flex-basis: 100%; }
.dt #search input { flex: 1 1 220px; }
.dt-refine { border-block: 1px solid var(--line); }
.dt-refine > summary, .dt-buy details > summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.dt-refine form { flex-direction: row; flex-wrap: wrap; align-items: end; gap: 16px 24px; padding: 8px 0 24px; }
.dt-refine form > div { display: grid; gap: 4px; flex: 1 1 160px; }

/* product */
.dt-pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.dt-gallery { display: grid; gap: 16px; }
.dt-gallery img, .dt-gallery .dt-plate { width: 100%; aspect-ratio: 3 / 4; height: auto; object-fit: cover; }
.dt-buy { display: grid; gap: 22px; }
.dt .dt-buy .dt-price { font: 300 2.1rem/1 var(--serif); }
.dt #dt-buy { align-items: stretch; gap: 18px; }
.dt #variants { display: grid; gap: 16px; }
.dt .dt-colour { border: 0; padding: 0; }
.dt .dt-colour legend { padding: 0; display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
.dt-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.dt .dt-size { position: relative; border: 0; padding: 0; min-height: 0; background: none; }
.dt .dt-size input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.dt .dt-size .label { min-width: 56px; min-height: 48px; padding: 6px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #8b867e; font-weight: 400; font-size: .9rem; }
.dt .dt-size input:checked + .label { background: var(--ink); color: #fff; border-color: var(--ink); }
.dt .dt-size input:focus-visible + .label { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.dt .dt-size input:disabled { cursor: not-allowed; }
.dt .dt-size input:disabled + .label { color: var(--muted); text-decoration: line-through; border-style: dashed; }
.dt-few { font-size: .7rem; }
.dt-buyrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dt-buyrow input { width: 5rem; flex: 0 0 auto; }
.dt-buyrow button { flex: 1 1 150px; }
.dt-guide { font-variant-numeric: tabular-nums; }
.dt-buy details { border-top: 1px solid var(--line); }
.dt-buy details > p { padding-bottom: 16px; }

/* controls */
.dt input:not([type="radio"]):not([type="checkbox"]), .dt select, .dt textarea { border: 0; border-bottom: 1px solid #8b867e; background: transparent; border-radius: 0; font-size: 1rem; }
.dt button { border-radius: 0; border: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 12px 24px; min-height: 48px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.dt button:hover { background: var(--ink); color: #fff; box-shadow: none; }
.dt .dt-add, .dt #checkout > button[type="submit"], .dt #search button[type="submit"], .dt #login-form button { background: var(--ink); color: #fff; }
.dt .dt-add:hover, .dt #checkout > button[type="submit"]:hover { background: var(--gold-text); filter: none; }
.dt #chrome #sign-out button { border: 0; padding: 0 4px; letter-spacing: 0; text-transform: none; }
.dt #chrome #sign-out button:hover { background: none; color: var(--ink); }
.dt .dt-save button { border: 0; padding: 0; text-decoration: underline; text-underline-offset: 5px; }
.dt .dt-save button:hover { background: none; color: var(--gold-text); }

/* cart, checkout, order, account, pages: the house's, dressed */
.dt #cart-lines .name { font: 300 1.35rem/1.2 var(--serif); }
.dt #cart-summary { border: 1px solid var(--line); background: var(--raised); border-radius: 0; }
.dt #cart-summary .total, .dt #totals .goods { font: 300 1.7rem/1 var(--serif); }
.dt #checkout, .dt #login, .dt #account, .dt #page, .dt #confirmation, .dt #tracking, .dt #wishlist-page > header { width: 100%; max-width: 720px; margin-inline: auto; }
.dt #checkout { align-items: stretch; gap: 10px; }
.dt .checkout-steps li { border-radius: 0; border-width: 0 0 1px; padding-inline: 0; }
.dt #page { font-size: 1.05rem; line-height: 1.8; }
.dt #page h1 { margin-bottom: 28px; }
.dt #page h2, .dt #page h3 { margin: 28px 0 8px; }
.dt #page p, .dt #page ul { margin-bottom: 14px; }
.dt #product ~ #cart-summary { max-width: 560px; }

/* footer */
.dt-footer { background: var(--ink); color: #fff; }
.dt-footer .cols { max-width: 1280px; margin: 0 auto; padding: 64px var(--gutter) 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 36px; }
.dt-footer nav { display: grid; align-content: start; }
.dt-footer a { color: #fff; text-decoration: none; min-height: 40px; display: flex; align-items: center; }
.dt-footer a:hover { text-decoration: underline; }
.dt .dt-footer .eyebrow { color: #c9a877; margin-bottom: 6px; }
.dt-footer .dt-logo { font-size: 2.8rem; }
.dt .dt-footer form { align-items: stretch; }
.dt .dt-footer label { color: #d8d3cb; display: flex; gap: 10px; align-items: start; }
.dt .dt-footer input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; accent-color: #c9a877; }
.dt .dt-footer input[type="email"] { color: #fff; border-color: #8b867e; }
.dt .dt-footer button { color: #fff; border-color: #fff; }
.dt .dt-footer button:hover { background: #fff; color: var(--ink); }
.dt #contact, .dt #trade, .dt #sent, .dt #news-asked, .dt #news-press, .dt #news-on, .dt #news-off, .dt #bad-link { width: 100%; max-width: 720px; margin-inline: auto; display: grid; gap: 20px; }
.dt #contact form, .dt #trade form { align-items: stretch; }

@media (max-width: 60rem) {
  .dt-nav, .dt-saved { display: none !important; }
  .dt-menu { display: block; }
  .dt-pdp { grid-template-columns: minmax(0, 1fr); }
  .dt #chrome #signed-in-as { display: none; }
}
@media (max-width: 40rem) {
  .dt #cart-lines, .dt #cart-lines tbody { display: block; }
  .dt #cart-lines tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .dt #cart-lines td { border: 0; padding: 4px 0; }
  .dt #cart-lines .name, .dt #cart-lines .quantity { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .dt-hero h1, .dt-hero .eyebrow, .dt-hero .dt-links { animation: dt-rise 1s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes dt-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
.dt .dt-was { font-size: .9rem; color: var(--muted); }
