/* dogphyla.com
   Colour lives in the breed, not in the background. The page is plain white for reading.
   Each breed gets its racing-jacket colour as solid fields: Whippet blue, Italian Greyhound claret. */

/* Self-hosted fonts (latin + latin-ext subsets, OFL). */
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 62% 100%;
  font-display: swap;
  src: url(/assets/fonts/archivo-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 62% 100%;
  font-display: swap;
  src: url(/assets/fonts/archivo-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --paper: #FFFFFF;
  --ink: #1B1E23;
  --ink-2: #4D5560;
  --rule: #E2E4E8;
  --rule-strong: #1B1E23;

  --whippet: #2A4AA3;
  --whippet-deep: #1F3A86;
  --whippet-wash: #EEF2FB;
  --whippet-on: #D9E1F6;   /* secondary text on blue, 6:1 */

  --iggy: #932C43;
  --iggy-deep: #752236;
  --iggy-wash: #FBEFF2;
  --iggy-on: #F4D9DF;      /* secondary text on claret, 6:1 */

  --breed: var(--ink);
  --breed-deep: var(--ink);
  --breed-wash: #F1F2F4;
  --breed-on: #E4E6EA;

  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --ui: "Archivo", system-ui, sans-serif;
  --measure: 68ch;
  --radius: 10px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
body.breed-whippet { --breed: var(--whippet); --breed-deep: var(--whippet-deep); --breed-wash: var(--whippet-wash); --breed-on: var(--whippet-on); }
body.breed-italian-greyhound { --breed: var(--iggy); --breed-deep: var(--iggy-deep); --breed-wash: var(--iggy-wash); --breed-on: var(--iggy-on); }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16181C; --ink: #ECEDEF; --ink-2: #A9AFB8; --rule: #2C3036; --rule-strong: #ECEDEF;
    --whippet-wash: #1C2438; --iggy-wash: #2D1B21; --breed-wash: #22252A;
  }
  body.breed-whippet { --breed-link: #9DB2F2; }
  body.breed-italian-greyhound { --breed-link: #EE9AAC; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--breed) var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.7 var(--body); caret-color: var(--breed); }
::selection { background: var(--breed); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--breed-link, var(--breed)); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--breed-link, var(--breed)); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.quiet, .ui { font-family: var(--ui); }
.quiet { color: var(--ink-2); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: 68px; flex-wrap: wrap; }
.brand { font: 800 1.45rem/1 var(--display); font-stretch: 72%; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; }
.brand svg { width: 36px; height: 19px; color: var(--breed); }
.nav { display: flex; gap: .25rem 1.4rem; flex-wrap: wrap; font: 600 .98rem/1 var(--ui); }
.nav a { color: var(--ink); text-decoration: none; padding: .7rem 0 .6rem; border-bottom: 3px solid transparent; transition: border-color .25s var(--ease), color .25s var(--ease); }
.nav a:hover { color: var(--c, var(--ink)); border-bottom-color: var(--rule); }
.nav a[aria-current="page"], .nav a.is-section { border-bottom-color: var(--c, var(--ink)); }
.nav a.w { --c: var(--whippet); }
.nav a.ig { --c: var(--iggy); }
@media (prefers-color-scheme: dark) { .nav a.w { --c: #9DB2F2; } .nav a.ig { --c: #EE9AAC; } }

/* Breadcrumbs */
.crumbs { font: 500 .85rem/1.4 var(--ui); color: var(--ink-2); padding: 1.1rem 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { color: var(--ink-2); }

/* Type */
h1, h2, h3 { font-family: var(--display); line-height: 1.04; letter-spacing: -.01em; word-spacing: .12em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; font-stretch: 70%; }
h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); font-weight: 700; font-stretch: 78%; margin-top: 2.4em; }
h3 { font-size: 1.3rem; font-weight: 700; font-stretch: 85%; margin-top: 1.8em; }
p, ul, ol { margin: 0 0 1.1em; }
.lede { font-size: 1.24rem; line-height: 1.6; color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }

/* HOME */
.home-hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.home-hero h1 { font-size: clamp(3rem, 8.5vw, 6rem); font-stretch: 62%; margin: 0; }
.home-hero .lede { margin: 0; }

/* The one bold moment: two solid breed fields, edge to edge */
.panels { display: grid; grid-template-columns: 1fr 1fr; }
.panel { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--lane); color: #fff; text-decoration: none; overflow: hidden; }
.panel.w { --lane: var(--whippet); --on: var(--whippet-on); }
.panel.ig { --lane: var(--iggy); --on: var(--iggy-on); }
.panel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(.9); transition: transform 1.2s var(--ease); }
.panel:hover img { transform: scale(1.03); }
.panel-text { display: flex; flex-direction: column; gap: .7rem; padding: clamp(1.5rem, 3.5vw, 2.75rem); }
.panel-name { font: 800 clamp(2.6rem, 6vw, 4.6rem)/.95 var(--display); font-stretch: 62%; word-spacing: .12em; }
.panel-lede { color: var(--on); font-size: 1.08rem; line-height: 1.55; max-width: 44ch; }
.panel-go { font: 700 1rem/1 var(--ui); margin-top: .5rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.panel:hover .panel-go { text-decoration-thickness: 2px; }
.panel:focus-visible { outline-color: var(--ink); outline-offset: -6px; }

.home-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 3.5rem; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.home-cols h2 { margin-top: 0; font-size: 1.5rem; }
.home-cols p { font-size: 1.02rem; color: var(--ink-2); }

/* Breed hub: solid breed band */
.band { background: var(--breed); color: #fff; margin-top: 1.1rem; }
.hub-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem 3.5rem; align-items: center; padding: clamp(2rem, 5vw, 3.5rem) 0; }
.hub-head h1 { color: #fff; font-size: clamp(2.8rem, 7vw, 5.2rem); font-stretch: 64%; }
.hub-head .lede { color: var(--breed-on); margin: 0; }
.hub-head figure { margin: 0; }
.hub-head img { border-radius: var(--radius); }
.hub-head figcaption { font: 400 .8rem/1.45 var(--ui); color: var(--breed-on); margin-top: .55rem; }
.hub-head figcaption a { color: #fff; }

.answer { border: 1px solid var(--breed); background: var(--breed-wash); border-radius: var(--radius); padding: 1.15rem 1.35rem; margin: 2rem 0; font-size: 1.1rem; max-width: var(--measure); }
.answer strong { font-family: var(--ui); color: var(--breed-link, var(--breed)); }

.track { list-style: none; padding: 0; margin: 1.25rem 0 3rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); column-gap: 3rem; border-top: 2px solid var(--rule-strong); }
.track li { border-bottom: 1px solid var(--rule); }
.track a { display: grid; gap: .2rem; padding: 1.05rem 0; color: var(--ink); text-decoration: none; }
.track .lane-name { font: 700 1.35rem/1.15 var(--display); font-stretch: 78%; transition: color .2s var(--ease); }
.track .lane-desc { color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.track a:hover .lane-name { color: var(--breed-link, var(--breed)); }

/* Lists */
.post-list { list-style: none; margin: 0 0 3rem; padding: 0; border-top: 2px solid var(--rule-strong); max-width: 54rem; }
.post-list li { border-bottom: 1px solid var(--rule); padding: 1rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.post-list a { font: 700 1.2rem/1.3 var(--display); font-stretch: 82%; text-decoration: none; color: var(--ink); }
.post-list a:hover { color: var(--breed-link, var(--breed)); }
.post-list .planned { color: var(--ink-2); opacity: .7; font: 700 1.2rem/1.3 var(--display); font-stretch: 82%; }
.tag { font: 600 .78rem/1 var(--ui); padding: .35rem .6rem; border-radius: 99px; background: var(--breed-wash); color: var(--breed-link, var(--breed)); white-space: nowrap; }
.tag.muted { background: transparent; border: 1px solid var(--rule); color: var(--ink-2); }

/* Article */
.article-grid { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 15rem); justify-content: center; gap: 4rem; padding: 2rem 0 4rem; }
.article-head h1 { font-size: clamp(2.4rem, 5.2vw, 3.7rem); }
.byline { display: flex; gap: .8rem; align-items: center; font: 500 .9rem/1.45 var(--ui); color: var(--ink-2); margin: 1.1rem 0 1.5rem; }
.byline a { color: var(--ink); font-weight: 700; }
.byline .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--breed); color: #fff; display: grid; place-items: center; font: 800 .95rem/1 var(--display); font-stretch: 80%; flex: none; }
.prose figure { margin: 2.2rem 0; }
.prose img { border-radius: var(--radius); }
.prose figcaption { font: 400 .82rem/1.45 var(--ui); color: var(--ink-2); margin-top: .55rem; }
.prose figcaption a { color: var(--ink-2); }
.prose blockquote { margin: 1.75rem 0; font-size: 1.25rem; font-style: italic; color: var(--ink); }
.prose table { border-collapse: collapse; width: 100%; font: 400 .96rem/1.45 var(--ui); margin: 1.75rem 0; font-variant-numeric: tabular-nums; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: .65rem .5rem; text-align: left; vertical-align: top; }
.prose th { border-bottom: 2px solid var(--rule-strong); font-weight: 700; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--breed-link, var(--breed)); }
.toc { position: sticky; top: 1.75rem; font: 500 .9rem/1.45 var(--ui); }
.toc h2 { font-size: 1rem; margin: 0 0 .7rem; font-stretch: 90%; }
.toc ol { list-style: none; padding: 0; margin: 0 0 2rem; }
.toc a { display: block; padding: .32rem 0; color: var(--ink-2); text-decoration: none; transition: color .2s var(--ease); }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--breed-link, var(--breed)); font-weight: 700; }
.twin { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem; font: 400 .95rem/1.5 var(--ui); }
.twin.w { --breed: var(--whippet); } .twin.ig { --breed: var(--iggy); }
.twin a { font-weight: 700; color: var(--breed); }
@media (prefers-color-scheme: dark) { .twin.w a { color: #9DB2F2; } .twin.ig a { color: #EE9AAC; } }
.sources { font: 400 .9rem/1.55 var(--ui); color: var(--ink-2); border-top: 1px solid var(--rule); margin-top: 3rem; padding-top: 1.1rem; }
.sources a { color: var(--ink-2); }
.note-vet { font: 400 .96rem/1.55 var(--ui); background: var(--breed-wash); border-radius: var(--radius); padding: .9rem 1.1rem; }
.preview-flag { border: 1px dashed var(--ink-2); font: 600 .88rem/1.45 var(--ui); padding: .7rem 1rem; border-radius: var(--radius); margin: 1.5rem 0; color: var(--ink-2); }

/* Tool */
.tool { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.6rem; max-width: 40rem; font-family: var(--ui); }
.tool label { display: block; font-weight: 600; margin: 1.1rem 0 .4rem; font-size: .95rem; }
.tool label:first-child { margin-top: 0; }
.tool input, .tool select { width: 100%; font: inherit; font-size: 1rem; padding: .7rem .8rem; border: 1px solid #B9BFC7; border-radius: 8px; background: var(--paper); color: var(--ink); }
.tool input:focus-visible, .tool select:focus-visible { border-color: var(--ink); }
.tool button { margin-top: 1.4rem; font: 700 1rem/1 var(--ui); background: var(--ink); color: var(--paper); border: 0; padding: .9rem 1.3rem; border-radius: 8px; cursor: pointer; transition: background .2s var(--ease); }
.tool button:hover { background: var(--whippet); color: #fff; }
.tool output { display: block; margin-top: 1.25rem; font-size: 1rem; }
.tool output:not(:empty) { padding: 1rem 1.1rem; background: var(--breed-wash); border-radius: 8px; }

/* Footer: quiet, on white */
.site-footer { margin-top: 3rem; padding: 3rem 0 2.5rem; font: 400 .93rem/1.6 var(--ui); color: var(--ink-2); border-top: 2px solid var(--rule-strong); }
.site-footer a { color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.site-footer h2 { font-size: 1.05rem; color: var(--ink); margin: 0 0 .6rem; font-stretch: 85%; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .3rem; }
.site-footer .fine { border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: 1.1rem; font-size: .85rem; }

.page { padding: 1.75rem 0 4rem; max-width: var(--measure); margin-inline: auto; }
/* Reading column: centred under the full-width band. */
.reading { max-width: var(--measure); margin-inline: auto; padding: 0 0 4rem; }

@media (max-width: 900px) {
  .home-hero, .hub-head, .article-grid, .home-cols, .footer-grid { grid-template-columns: 1fr; }
  .panels { grid-template-columns: 1fr; }
  .toc { position: static; }
  .article-grid { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
