/* tqblue.com
   Cool art deco, marina. Deep harbour navy into marine teal, brass hairlines,
   a bone ground and wide-tracked deco capitals. TQ is the Torquay postcode and
   the palette is meant to read as sea and brass rather than as a generic blue.

   Structural conventions (page width, prose measure, focus ring, reduced
   motion) follow adammackay.com and azmackay.com so the three stay related.
   Every deco element here is CSS: no decorative images are loaded. */

:root{
  /* water */
  --deep:#0a2440;
  --sea:#0f4c5c;
  --sea-light:#1b6b7a;
  /* brass */
  --brass:#c8a668;
  --brass-light:#e3c893;
  --brass-dark:#a8873f;
  /* ground */
  --sand:#f5f1e8;
  --shell:#fffdf9;
  --ink:#1c2a38;
  --ink-mid:#4c5d6b;
  --rule:#ddd5c6;

  --serif:'Newsreader','Merriweather',Georgia,serif;
  --sans:'Inter','Source Sans Pro',system-ui,sans-serif;
  --display:'Playfair Display','Newsreader',Georgia,serif;

  --max-w:780px;
  --transition:0.2s cubic-bezier(0.4,0,0.2,1);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}

html{font-size:16px;overflow-x:clip;}

body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--sand);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

#site-root{display:flex;flex-direction:column;min-height:100vh;}

.skip-link{
  position:absolute;top:-100%;left:0;z-index:9999;
  padding:8px 20px;background:var(--deep);color:var(--shell);
  font-size:14px;text-decoration:none;
}
.skip-link:focus{top:0;}

/* --- masthead -------------------------------------------------------------
   A deep harbour band: navy to marine teal, a brass double hairline inside the
   edge, a low sunburst fan behind the wordmark, and a stepped deco skirt. */

#masthead{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(160deg,var(--deep) 0%,#0c3550 45%,var(--sea) 100%);
  padding:88px 24px 0;
  text-align:center;
}

/* brass double hairline, inset from the edge */
#masthead::before{
  content:"";
  position:absolute;
  inset:16px 16px 28px;
  border:1px solid rgba(200,166,104,0.45);
  pointer-events:none;
}
#masthead::after{
  content:"";
  position:absolute;
  inset:22px 22px 34px;
  border:1px solid rgba(200,166,104,0.20);
  pointer-events:none;
}

/* the fan: deco sunburst, very low contrast, anchored under the wordmark */
.masthead-fan{
  position:absolute;
  left:50%;
  bottom:34px;
  width:1100px;
  height:1100px;
  transform:translateX(-50%);
  background:repeating-conic-gradient(
    from 202deg at 50% 100%,
    rgba(255,255,255,0.030) 0deg 2deg,
    rgba(255,255,255,0) 2deg 11deg
  );
  /* fade the rays out before they reach the frame, so the band stays calm */
  -webkit-mask-image:radial-gradient(ellipse 60% 70% at 50% 100%,#000 0%,rgba(0,0,0,0.55) 45%,transparent 78%);
  mask-image:radial-gradient(ellipse 60% 70% at 50% 100%,#000 0%,rgba(0,0,0,0.55) 45%,transparent 78%);
  pointer-events:none;
}

.masthead-inner{
  position:relative;
  z-index:1;
  max-width:var(--max-w);
  margin:0 auto;
  padding-bottom:72px;
}

/* the wordmark */
#masthead h1{
  font-family:var(--display);
  font-size:clamp(2.6rem,7vw,4.2rem);
  font-weight:700;
  line-height:1;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--shell);
}

#masthead h1.has-wordmark{line-height:0;}

#masthead h1.has-wordmark img{
  display:block;
  width:min(420px,74vw);
  height:auto;
  margin:0 auto;
}

/* the descriptor, in wide deco capitals with brass hairlines either side */
#masthead p{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin-top:26px;
}

#masthead p em{
  font-style:normal;
  font-family:var(--sans);
  font-size:0.72rem;
  font-weight:600;
  letter-spacing:0.32em;
  text-transform:uppercase;
  color:var(--brass-light);
  white-space:nowrap;
}

#masthead p::before,
#masthead p::after{
  content:"";
  height:1px;
  width:clamp(24px,9vw,96px);
  background:linear-gradient(90deg,transparent,var(--brass));
}
#masthead p::after{background:linear-gradient(90deg,var(--brass),transparent);}

/* stepped deco skirt along the foot of the band */
.masthead-steps{
  position:relative;
  z-index:1;
  height:14px;
  background:
    /* the continuous brass rule along the waterline */
    linear-gradient(var(--brass),var(--brass)) 0 100% / 100% 2px no-repeat,
    /* a second, lighter rule set just above it */
    linear-gradient(rgba(200,166,104,0.38),rgba(200,166,104,0.38)) 0 calc(100% - 5px) / 100% 1px no-repeat,
    /* widely spaced deco uprights stepping off the rule */
    repeating-linear-gradient(90deg,
      rgba(200,166,104,0.55) 0 2px,
      transparent 2px 48px) 0 100% / 100% 9px no-repeat;
}

/* --- main ----------------------------------------------------------------- */

#site-main{flex:1;}

.page-content{
  max-width:var(--max-w);
  margin:0 auto;
  padding:64px 24px 88px;
}

/* --- prose ---------------------------------------------------------------- */

/* pages without a masthead, such as 404 */
.prose h1{
  font-family:var(--display);
  font-size:clamp(1.9rem,4vw,2.6rem);
  font-weight:700;
  line-height:1.15;
  color:var(--deep);
  margin-bottom:0.7em;
}


.prose p{
  font-family:var(--serif);
  font-size:1.075rem;
  color:var(--ink);
  margin-bottom:1.25em;
}

/* the opening two lines carry a little more weight */
.prose > p:first-child{
  font-size:1.2rem;
  line-height:1.6;
  color:var(--deep);
}

.split + h2{margin-top:3.2em;}

.prose h2{
  font-family:var(--sans);
  font-size:0.82rem;
  font-weight:700;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--sea);
  margin-bottom:1.1em;
  padding-top:18px;
  position:relative;
}

/* a stepped brass rule above each heading, the deco motif repeated small */
.prose h2::before{
  content:"";
  position:absolute;
  top:0;left:0;
  width:56px;height:3px;
  background:
    linear-gradient(var(--brass),var(--brass)) 0 0 / 56px 1px no-repeat,
    linear-gradient(var(--brass),var(--brass)) 0 2px / 30px 1px no-repeat;
}

.prose a{
  color:var(--sea);
  text-decoration:underline;
  text-decoration-color:var(--brass);
  text-underline-offset:4px;
  text-decoration-thickness:1px;
  transition:color var(--transition),text-decoration-color var(--transition);
}
.prose a:hover{color:var(--brass-dark);text-decoration-color:var(--brass-dark);}

.prose strong{font-weight:700;color:var(--deep);}

/* --- the two author columns ----------------------------------------------- */

.split{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:0;
  margin:3em 0 0;
  background:var(--shell);
  border:1px solid var(--rule);
}

.split-col{padding:32px 30px;}

/* the centre division, brass and hairline-thin */
.split-col + .split-col{border-left:1px solid var(--rule);}

.split-col h2{margin-top:0;}
.split-col p{font-size:1.02rem;}
.split-col p:last-child{margin-bottom:0;}

.enquiries{margin-top:3.2em;}

/* --- footer --------------------------------------------------------------- */

#site-footer{
  background:var(--deep);
  color:rgba(255,253,249,0.66);
  padding:28px 24px;
  border-top:2px solid var(--brass);
}

.footer-inner{
  max-width:var(--max-w);
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:16px;
  flex-wrap:wrap;
  font-size:0.8rem;
}

.footer-mark{
  font-family:var(--sans);
  font-weight:600;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--brass-light);
  font-size:0.72rem;
}

/* --- accessibility -------------------------------------------------------- */

:focus-visible{
  outline:3px solid var(--brass);
  outline-offset:3px;
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
  }
}

/* --- narrow screens ------------------------------------------------------- */

@media (max-width:640px){
  #masthead{padding-top:64px;}
  .masthead-inner{padding-bottom:56px;}
  #masthead p{gap:10px;}
  #masthead p em{letter-spacing:0.24em;font-size:0.66rem;}
  .split{grid-template-columns:1fr;}
  .split-col + .split-col{border-left:none;border-top:1px solid var(--rule);}
}

@media (max-width:480px){
  #masthead{padding:48px 16px 0;}
  #masthead::before{inset:10px 10px 24px;}
  #masthead::after{inset:15px 15px 29px;}
  .page-content{padding:48px 16px 64px;}
  .split-col{padding:26px 22px;}
  #site-footer{padding:22px 16px;}
}
